Doubter - v5.1.1-next.e4e15ab
    Preparing search index...

    Class Type<T>

    The enum-like class that describes a value type.

    Type Parameters

    • T extends string = string

      The name of the value type.

    Index

    Properties

    name: T

    The name of the type.

    ARRAY: Type<"array"> = ...
    BIGINT: Type<"bigint"> = ...
    BOOLEAN: Type<"boolean"> = ...
    DATE: Type<"date"> = ...
    FUNCTION: Type<"function"> = ...
    MAP: Type<"map"> = ...
    NULL: Type<"null"> = ...
    NUMBER: Type<"number"> = ...
    OBJECT: Type<"object"> = ...
    PROMISE: Type<"promise"> = ...
    SET: Type<"set"> = ...
    STRING: Type<"string"> = ...
    SYMBOL: Type<"symbol"> = ...
    UNDEFINED: Type<"undefined"> = ...
    UNKNOWN: Type<"unknown"> = ...

    Methods

    • Returns the type of the given value. If value is a type itself, it is returned as is.

      Parameters

      • value: unknown

        The value to get type of.

      Returns Type

      The type of the value.