#
Class: TimeTypecore.TimeType
#
Hierarchy↳ TimeType
#
Constructors#
constructor+ new TimeType(): TimeType
Returns: TimeType
Inherited from: Type
#
Methods#
compareAsTypeâ–¸ compareAsType(): string
Returns: string
Overrides: Type
Defined in: packages/core/src/types/TimeType.ts:16
#
convertToDatabaseValueâ–¸ convertToDatabaseValue(value
: any, platform
: Platform): string
#
Parameters:Name | Type |
---|---|
value | any |
platform | Platform |
Returns: string
Overrides: Type
Defined in: packages/core/src/types/TimeType.ts:8
#
convertToJSValueâ–¸ convertToJSValue(value
: string, platform
: Platform): string
Converts a value from its database representation to its JS representation of this type.
#
Parameters:Name | Type |
---|---|
value | string |
platform | Platform |
Returns: string
Inherited from: Type
Defined in: packages/core/src/types/Type.ts:18
#
getColumnTypeâ–¸ getColumnType(prop
: EntityProperty<any>, platform
: Platform): string
#
Parameters:Name | Type |
---|---|
prop | EntityProperty<any> |
platform | Platform |
Returns: string
Overrides: Type
Defined in: packages/core/src/types/TimeType.ts:20
#
toJSONâ–¸ toJSON(value
: string, platform
: Platform): string
Converts a value from its JS representation to its serialized JSON form of this type. By default uses the runtime value.
#
Parameters:Name | Type |
---|---|
value | string |
platform | Platform |
Returns: string
Inherited from: Type
Defined in: packages/core/src/types/Type.ts:34
#
getTypeâ–¸ Static
getType<JSType, DBType>(cls
: Constructor<Type<JSType, DBType>>): Type<JSType, DBType>
#
Type parameters:Name |
---|
JSType |
DBType |
#
Parameters:Name | Type |
---|---|
cls | Constructor<Type<JSType, DBType>> |
Returns: Type<JSType, DBType>
Inherited from: Type
Defined in: packages/core/src/types/Type.ts:46