Skip to main content

CommonProperty

Callable

  • CommonProperty<T>(propertyName, getter, setter): void

  • Defines a property with the given name and the passed setter and getter

    @example
    CommonDeprecate(
    "OldFunc",
    function NewFunc (a, b) { return a + b; },
    );

    Parameters

    • propertyName: string

      The name for the new property

    • optionalgetter: () => T = undefined

      The getter function for the property

      • optionalsetter: (args) => void = undefined

        The setter function for the property

        Returns void