Skip to main content

Class: Type

Defined in: index.ts:20

The class for deep checking Types

Constructors

new Type()

new Type(value: unknown, parent: null | Type): Type

Defined in: index.ts:50

Parameters

ParameterTypeDefault valueDescription
valueunknownundefinedThe value to generate a deep Type of
parentnull | TypenullThe parent value used in recursion

Returns

Type

Properties

is

is: string

Defined in: index.ts:29

The shallow type of this


value

readonly value: unknown

Defined in: index.ts:24

The value to generate a deep Type of

Methods

toString()

toString(): string

Defined in: index.ts:67

The full type string generated.

Returns

string


resolve()

static resolve(value: any): string

Defined in: index.ts:140

Resolves the type name that defines the input.

Parameters

ParameterTypeDescription
valueanyThe value to get the type name of

Returns

string