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