Define a built-in constant (like NULL or TRUE) and the TS value it should have

interface BuiltInConstantDefinition<Value> {
    assumePrimitive?: boolean;
    names: readonly Identifier[];
    type: "constant";
    value: Value;
}

Type Parameters

  • Value

    The type of the constant value

Hierarchy (view full)

Hierarchy-Diagram

UML class diagram of BuiltInConstantDefinition

Properties

assumePrimitive?: boolean

Should we assume that the value is a primitive?

names: readonly Identifier[]

The function name to define to the given configuration

type: "constant"

The type of the built-in configuration

value: Value

The constant value to define