Skip to content
Sheetwrite

@sheetwrite/core/codec

validateBuiltWorkbookSnapshotfunction

Report a problem

On this page

validateWorkbookSnapshot for a snapshot the caller built in this call from plain data that no other code has reached, such as the snapshot an XLSX reader assembles. The checks and the result are the same, except that fields are read directly: the caller vouches that no property is a getter and that no array has holes, named fields or symbol keys. Never use it on a snapshot that came from outside your code.

Declaration

function validateBuiltWorkbookSnapshot(
input: unknown,

Parameters

input: unknownrequired

A snapshot your code built in this call.

options?: SnapshotValidationOptionsoptional

The same options as validateWorkbookSnapshot.

Returns

Success or structured errors returned by document validation.