import { type MethodsOf } from "https://deno.land/x/enzastdlib@v0.0.4/collections/mod.ts";
Returns an Object
containing all the methods of a Class
.
Examples
Example 1
Example 1
import type { MethodsOf } from 'https://deno.land/x/enzastdlib/collections/mod.ts';
class MyClass {
myProperty = false;
methodOne(): number {
return 42;
}
methodTwo(): string {
return "Hello World";
}
}
type MyMethods = MethodsOf<MyClass>; // `{ methodOne: () => number; methodTwo: () => string; }`
definition: PickValues<Cls, Function>