Version: 4.3

Class: TimeType

Hierarchy

Methods

compareAsType

compareAsType(): string

Overrides Type.compareAsType

Defined in packages/core/src/types/TimeType.ts:16

Returns: string


convertToDatabaseValue

convertToDatabaseValue(value: any, platform: Platform): string

Overrides Type.convertToDatabaseValue

Defined in packages/core/src/types/TimeType.ts:8

Parameters:

NameType
valueany
platformPlatform

Returns: string


convertToJSValue

convertToJSValue(value: string | JSType, platform: Platform): string

Inherited from Type.convertToJSValue

Defined in packages/core/src/types/Type.ts:18

Converts a value from its database representation to its JS representation of this type.

Parameters:

NameType
valuestring | JSType
platformPlatform

Returns: string


getColumnType

getColumnType(prop: EntityProperty, platform: Platform): string

Overrides Type.getColumnType

Defined in packages/core/src/types/TimeType.ts:20

Parameters:

NameType
propEntityProperty
platformPlatform

Returns: string


toJSON

toJSON(value: string, platform: Platform): string | JSType

Inherited from Type.toJSON

Defined in packages/core/src/types/Type.ts:34

Converts a value from its JS representation to its serialized JSON form of this type. By default uses the runtime value.

Parameters:

NameType
valuestring
platformPlatform

Returns: string | JSType


getType

StaticgetType<JSType, DBType>(cls: Constructor<Type<JSType, DBType>>): Type<JSType, DBType>

Inherited from Type.getType

Defined in packages/core/src/types/Type.ts:46

Type parameters:

Name
JSType
DBType

Parameters:

NameType
clsConstructor<Type<JSType, DBType>>

Returns: Type<JSType, DBType>

Last updated on by Martin Adámek