Skip to content

@maxhealth.tech/prefab / renderer / validateWireFormat

Function: validateWireFormat()

ts
function validateWireFormat(data, opts?): ValidationResult;

Defined in: core/validate.ts:39

Validate a wire format payload. Returns { valid: true, errors: [] } if OK, or { valid: false, errors: [...] } with details about what's wrong.

Parameters

ParameterTypeDescription
dataunknownThe raw parsed JSON to validate
opts{ strict?: boolean; }Optional: strict mode warns on unknown component types
opts.strict?boolean-

Returns

ValidationResult

Released under the MIT License.