跳转到主要内容

validateSource()

function validateSource(
templateBuffer,
sourceBuffer,
options?): Promise<ValidationReport>;

Defined in: impl/js/src/validator.ts:64

Experimental

Validate that an .xlsx source workbook supplies the headers required by a template. This is read-only and does not render output workbooks.

Added by ADR-0078 as an additive validation gate.

Parameters

ParameterType
templateBufferArrayBuffer
sourceBufferArrayBuffer
options?ValidateOptions

Returns

Promise<ValidationReport>