NumberType
sourceConstructors
new NumberType(): NumberType
inherited from
Type.constructor
Properties
compareEquality: Functionsource
The function used to compare two values of this type for equality.
compareOrder: Functionsource
The function used to order two values of this type.
inherited from
Type.constructor
hasPrimitiveUnderlyingType: truesource
If set, this field may be treated as a primitive for the purposes of comparisons and hash lookups.
parse: ParseFnsource
inherited from
Type.parse
The function used to parse a value of this type.
serialise: Functionsource
The function used to serialise a value of this type.
typeConstructor: NumberConstructorsource
Inherited methods
is<T extends Type>(ctor: AbstractCtor): this is Tsource
inherited from
Type.is
Returns true if this is an instance of the given supertype. This is equivalent to an instanceof check, except that the check is performed by comparing constructors by name rather than identity. This works around a bundling issue where the same class can appear multiple times in an application. For more context, see:
- https://gitlab.cartax.io/platform/meta/-/merge_requests/590
- https://gitlab.cartax.io/platform/meta/-/merge_requests/1194
orNull(): NumberTypesource
inherited from
Type.orNull
toJsonSchema(): JSONSchema7source
inherited from
Type.toJsonSchema
toString(): stringsource
inherited from
Type.toString