ForeignKeyType

source

Constructors

new ForeignKeyType(model: ModelType): ForeignKeyTypesource

Properties

constructor: Ctorsource

inherited from Type.constructor

readonlymodel: ModelTypesource

Methods

Instance methods

toJsonSchema(): objectsource

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(): ForeignKeyTypesource

inherited from Type.orNull

toString(): stringsource

inherited from Type.toString