Function Type

  • Create a type token.

    Type Parameters

    • T

    Parameters

    • typeName: string

    Returns Type<T>

    const Spell = Type<Spell>("Spell");
    

    @NO_SIDE_EFFECTS

Properties

Properties

Null: Type<null>

Type token of null.

container.resolve(Type.Null); // => null
Undefined: Type<undefined>

Type token of undefined.

container.resolve(Type.Undefined); // => undefined