Int16Type

source

Constructors

new Int16Type(): Int16Type

inherited from NumberType.constructor

Properties

readonlycompareEquality: Functionsource

inherited from NumberType.compareEquality

The function used to compare two values of this type for equality.

readonlycompareOrder: Functionsource

inherited from NumberType.compareOrder

The function used to order two values of this type.

constructor: Ctorsource

inherited from NumberType.constructor

readonlyhasPrimitiveUnderlyingType: truesource

inherited from NumberType.hasPrimitiveUnderlyingType

If set, this field may be treated as a primitive for the purposes of comparisons and hash lookups.

readonlyparse: Functionsource

The function used to parse a value of this type.

readonlyserialise: Functionsource

inherited from NumberType.serialise

The function used to serialise a value of this type.

readonlytypeConstructor: NumberConstructorsource

inherited from NumberType.typeConstructor

Methods

Instance methods

toJsonSchema(): JSONSchema7source

Inherited methods

is<T extends Type>(ctor: AbstractCtor): this is Tsource

inherited from NumberType.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(): Int16Typesource

inherited from NumberType.orNull

toString(): stringsource

inherited from NumberType.toString