Documentation / @warp-drive/schema-record / withDefaults
ts
function withDefaults(schema): ResourceSchema;
Defined in: schema.ts:82
Utility for constructing a ResourceSchema with the recommended fields for the PolarisMode experience.
Using this requires registering the PolarisMode derivations
ts
import { registerDerivations } from '@warp-drive/schema-record';
registerDerivations(schema);
Parameters
schema
WithPartial
<PolarisResourceSchema
, "identity"
>