Skip to content
Sheetwrite

@sheetwrite/core/codec

validateWorkbookSnapshotfunction

Report a problem

On this page

Validate and canonically order a schema-1 snapshot without hydrating runtime state.

Declaration

function validateWorkbookSnapshot(
input: unknown,

Parameters

input: unknownrequired

A snapshot from outside your code, such as parsed JSON.

options?: SnapshotValidationOptionsoptional

The storage model to check capacity against, and resource limits that replace the defaults.

Returns

Success or structured errors returned by document validation.