Skip to content

Documentation / @warp-drive/core / build-config/canary-features / ENFORCE_STRICT_RESOURCE_FINALIZATION

Variable: ENFORCE_STRICT_RESOURCE_FINALIZATION

ts
const ENFORCE_STRICT_RESOURCE_FINALIZATION: boolean | null;

Defined in: warp-drive-packages/build-config/declarations/canary-features.d.ts:147

This upcoming feature adds a validation step when schema.fields({ type }) is called for the first time for a resource.

When active, if any trait specified by the resource or one of its traits is missing an error will be thrown in development.

Since

5.7

Released under the MIT License.