Function esMemberAccessor

  • Creates the named member accessor expression.

    If the given name is safe to be used as ID, a .name syntax is used. A ['name'] syntax is used otherwise.

    Private member names always converted to the safe form and prepended by # sign.

    Parameters

    • name: string

      Accessed member name.

    • visibility: EsMemberVisibility = EsMemberVisibility.Public

      Accessed member visibility. Public by default.

    Returns {
        accessor: string;
        key: string;
    }

    • accessor: string

      Member accessor to be appended to host object reference..

    • key: string

      Member key that can be used e.g. within class declarations or as object literal key.

Generated using TypeDoc