• Helper to introspect the public available property names.

    Parameters

    • instance: any

      the instance to introspect.

    • skipOwn: boolean = false

      skip additional object property names that were not part of the original declare().

    Returns string[]

    property names

    Example

    let Clazz = declare({
    firstName: "",
    lastName: "",
    });

    let instance = new Clazz();

    let names = propertyNames(instance);
    //-> names === ["firstName","lastName"]

Generated using TypeDoc