@eveble/eveble

Hierarchy

  • Serializer

Implemented by

Index

Methods

Methods

clone

cloneT›(value: T): T

Type parameters:

T

Parameters:

NameType
valueT

Returns: T

cloneT›(value: T): T

Type parameters:

T

Parameters:

NameType
valueT

Returns: T


equals

equals(a: any, b: any, options?: object): boolean

Parameters:

a: any

b: any

Optional options: object

NameType
keyOrderSensitiveboolean

Returns: boolean

equals(a: any, b: any, options?: object): boolean

Parameters:

a: any

b: any

Optional options: object

NameType
keyOrderSensitiveboolean

Returns: boolean


fromData

fromData(data: Record‹string | number, any›): Record‹string | number, any›

Parameters:

NameType
dataRecord‹string | number, any›

Returns: Record‹string | number, any›

fromData(data: Record‹string | number, any›): Record‹string | number, any›

Parameters:

NameType
dataRecord‹string | number, any›

Returns: Record‹string | number, any›


fromJSONValue

fromJSONValue(value: Record‹string, any›): Record‹string, any› | Serializable

Parameters:

NameType
valueRecord‹string, any›

Returns: Record‹string, any› | Serializable

fromJSONValue(value: Record‹string, any›): Record‹string, any› | Serializable

Parameters:

NameType
valueRecord‹string, any›

Returns: Record‹string, any› | Serializable


getType

getType(typeName: TypeName): Type | undefined

Parameters:

NameType
typeNameTypeName

Returns: Type | undefined

getType(typeName: TypeName): Type | undefined

Parameters:

NameType
typeNameTypeName

Returns: Type | undefined


getTypeOrThrow

getTypeOrThrow(typeName: TypeName): Type

Parameters:

NameType
typeNameTypeName

Returns: Type

getTypeOrThrow(typeName: TypeName): Type

Parameters:

NameType
typeNameTypeName

Returns: Type


getTypes

getTypes(): Map‹TypeName, Type

Returns: Map‹TypeName, Type

getTypes(): Map‹TypeName, Type

Returns: Map‹TypeName, Type


getTypesNames

getTypesNames(): TypeName[]

Returns: TypeName[]

getTypesNames(): TypeName[]

Returns: TypeName[]


hasType

hasType(typeName: TypeName): boolean

Parameters:

NameType
typeNameTypeName

Returns: boolean

hasType(typeName: TypeName): boolean

Parameters:

NameType
typeNameTypeName

Returns: boolean


isTypeInstance

isTypeInstance(typeInstance: Serializable): boolean

Parameters:

NameType
typeInstanceSerializable

Returns: boolean

isTypeInstance(typeInstance: Serializable): boolean

Parameters:

NameType
typeInstanceSerializable

Returns: boolean


overrideType

overrideType(typeName: TypeName, type: Type): void

Parameters:

NameType
typeNameTypeName
typeType

Returns: void

overrideType(typeName: TypeName, type: Type): void

Parameters:

NameType
typeNameTypeName
typeType

Returns: void


parse

parse(str: string): any

Parameters:

NameType
strstring

Returns: any

parse(str: string): any

Parameters:

NameType
strstring

Returns: any


registerType

registerType(typeName: TypeName, type: Type, shouldOverride?: boolean): void

Parameters:

NameType
typeNameTypeName
typeType
shouldOverride?boolean

Returns: void

registerType(typeName: TypeName, type: Type, shouldOverride?: boolean): void

Parameters:

NameType
typeNameTypeName
typeType
shouldOverride?boolean

Returns: void


removeType

removeType(typeName: TypeName): void

Parameters:

NameType
typeNameTypeName

Returns: void

removeType(typeName: TypeName): void

Parameters:

NameType
typeNameTypeName

Returns: void


removeTypes

removeTypes(): void

Returns: void

removeTypes(): void

Returns: void


stringify

stringify(value: any, options?: object): string

Parameters:

value: any

Optional options: object

NameType
canonicalboolean
indentboolean | number

Returns: string

stringify(value: any, options?: object): string

Parameters:

value: any

Optional options: object

NameType
canonicalboolean
indentboolean | number

Returns: string


toData

toData(arg: Record‹string | number, any›): Record‹string | number, any›

Parameters:

NameType
argRecord‹string | number, any›

Returns: Record‹string | number, any›

toData(arg: Record‹string | number, any›): Record‹string | number, any›

Parameters:

NameType
argRecord‹string | number, any›

Returns: Record‹string | number, any›


toJSONValue

toJSONValue(value: any): any

Parameters:

NameType
valueany

Returns: any

toJSONValue(value: any): any

Parameters:

NameType
valueany

Returns: any