util

@prismatic-io/spectral"util"

Index#

Functions#

Functions#

Const isBigInt#

isBigInt(value: unknown): boolean

Parameters:

NameType
valueunknown

Returns: boolean


Const isBool#

isBool(value: unknown): boolean

Parameters:

NameType
valueunknown

Returns: boolean


Const isDate#

isDate(value: unknown): boolean

Parameters:

NameType
valueunknown

Returns: boolean


Const isInt#

isInt(value: unknown): boolean

Parameters:

NameType
valueunknown

Returns: boolean


Const isUrl#

isUrl(value: string): boolean

Parameters:

NameType
valuestring

Returns: boolean


Const toBigInt#

toBigInt(value: unknown): bigint

Parameters:

NameType
valueunknown

Returns: bigint


Const toBool#

toBool(value: unknown): boolean

Parameters:

NameType
valueunknown

Returns: boolean


Const toData#

toData(value: unknown): DataPayload

Parameters:

NameType
valueunknown

Returns: DataPayload


Const toDate#

toDate(value: unknown): Date

Parameters:

NameType
valueunknown

Returns: Date


Const toInt#

toInt(value: unknown): number

Parameters:

NameType
valueunknown

Returns: number