Skip to content

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

Variable: ENFORCE_STRICT_RESOURCE_FINALIZATION

ts
const ENFORCE_STRICT_RESOURCE_FINALIZATION: boolean | null = false;

Defined in: canary-features.ts:150

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.