Documentation / @warp-drive/core / reactive / withDefaults
Function: withDefaults()
ts
function withDefaults(schema): PolarisResourceSchema;Defined in: core/src/reactive/-private/schema.ts:392
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">