UNPKG

spread-diff-patch

Version:
26 lines (23 loc) 824 B
import { WorkBook } from 'xlsx'; import { D as DiffAOA } from '../DiffAOA-mlvW9HLo.mjs'; /** * Represents a formatter for a workbook. * @template T - The type of data in the workbook. */ declare class WorkbookFormatter<T> { patch: (actual: T | null, expected: T | null) => string; /** * Creates a new instance of WorkbookFormatter. * @param patcher - A function that generates the patch string for a given actual and expected value. */ constructor(patcher?: (actual: T | null, expected: T | null) => string); /** * Formats the diff sheets of the workbook. * @param diffSheets - An object representing the diff sheets. * @returns The formatted workbook. */ format(diffSheets: { [sheet: string]: DiffAOA<T>; }): WorkBook; } export { WorkbookFormatter };