Skip to main content

Class: Type

The class for deep checking Types

Constructors

new Type()

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

Parameters

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

Returns

Type

Defined in

index.ts:50

Properties

is

is: string

The shallow type of this

Defined in

index.ts:29


value

readonly value: unknown

The value to generate a deep Type of

Defined in

index.ts:24

Methods

toString()

toString(): string

The full type string generated.

Returns

string

Defined in

index.ts:67


resolve()

static resolve(value: any): string

Resolves the type name that defines the input.

Parameters

ParameterTypeDescription
valueanyThe value to get the type name of

Returns

string

Defined in

index.ts:140