NilConverter

Hierarchy

  • NilConverter

Implements

Index

Methods

Object literals

Methods

convert

convert(reflectedType: tsruntimeTypes.ReflectedType): null | undefined

Converts reflected type to nil for validation.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.

Returns: null | undefined

Returns converted reflected type as null or undefined.


isConvertible

isConvertible(reflectedType: tsruntimeTypes.ReflectedType): boolean

Evaluates if provided reflected type is nil.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.

Returns: boolean

Returns true if reflected type is nil, else false.


reflect

reflect(reflectedType: tsruntimeTypes.ReflectedType): null | undefined

Reflects type to nil.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.

Returns: null | undefined

Returns reflected type as null or undefined.

Object literals

Static MAPPINGS

MAPPINGS: object

12

12: undefined = undefined

13

13: null = null