• 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

    const Clazz = declare({
    firstName: "",
    lastName: ""
    });
    const instance = new Clazz();
    const names = propertyNames(instance);
    //-> names === ["firstName","lastName"]