Skip to content
module@warp-drive/legacy/model/migration-support @legacy

Type Alias WithLegacyDerivations<T extends TypedRecordInstance> ​

ts
type WithLegacyDerivations<T extends TypedRecordInstance> = T & MinimalLegacyRecord & {
  belongsTo: typeof belongsTo;
  hasMany: typeof hasMany;
};

Defined in: warp-drive-packages/legacy/src/model/migration-support.ts:92

Adds the Model-style belongsTo/hasMany reference methods to a TypedRecordInstance, for use when migrating a resource from Model to a schema-based record while preserving these APIs.

Type Parameters ​

T ​

T extends TypedRecordInstance

Type Declaration ​

belongsTo ​

ts
belongsTo: typeof belongsTo;

see belongsTo

hasMany ​

ts
hasMany: typeof hasMany;

see hasMany

Released under the MIT License.