• Helper to create setter properties.

    Type Parameters

    • T extends {}

    Parameters

    • self: T

      object on which the setter should be declared.

    • name: string

      property name

    • symbol: symbol

      symbol instance

    Returns void

    import propertyToSymbol from "apprt-core/propertyToSymbol";

    const _config = Symbol("_config");

    class MyClass {
    constructor(){
    propertyToSymbol(this, "config", _config);
    }
    }