Function esConst

  • Declares constant.

    Constants are typically temporary values initialized to simple values.

    Constant name is built as ${prefix}${key}, unless the constant is exported. An exported constant uses key as its name.

    Constants are cached, o.e. constant symbols with the same initializers will be reused,

    Parameters

    • key: string

      Constant key.

    • initializer: string

      Constant initializer. This has to be valid expression.

    • Optional init: EsConstInit

      Constant initialization options.

    Returns EsSymbol

    Declared constant symbol.

Generated using TypeDoc