View validation
Validate standard fields, controls and choice bounds.
Public exports
Import from @scape-wtf/sdk.
validObjectFieldValue, validObjectView.
Type declarations
Import the public exports listed above from the package entry point.
ts
import { type ObjectField, type ObjectView } from './api.js';
/** The same bounded view contract is used for bundled and uploaded definitions. */
export declare function validObjectView(value: unknown): value is ObjectView;
/** Validate submitted typed values again in actions; view validation is not authorization. */
export declare function validObjectFieldValue(field: ObjectField, value: unknown): boolean;1
2
3
4
5
2
3
4
5
Usage and limits
See Gizmo guides, working examples, and limits for lifecycle, validation and Scape behavior.
