Skip to content
module@warp-drive/legacy/model-fragments @legacy

Function withLegacy() ​

ts
function withLegacy(schema: WithPartial<LegacyResourceSchema, "identity" | "legacy">): ResourceSchema;

Defined in: warp-drive-packages/legacy/src/model-fragments/utilities/with-legacy.ts:16

Used as a helper to setup the relevant parts of a legacy resource schema migrated from Model, applying the ember-object and fragment object extensions and a default @id identity field.

Parameters ​

schema ​

WithPartial<LegacyResourceSchema, "identity" | "legacy">

the partial legacy resource schema to complete

Returns ​

ResourceSchema

the completed resource schema

Released under the MIT License.