Skip to main content
Module

x/enzastdlib/collections/mod.ts>PropertiesOf

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
type alias PropertiesOf
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

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>