Implement review changes from Discord thread

This commit is contained in:
lionel-rowe 2023-12-10 19:04:11 +08:00
parent c9b78b6563
commit 9035715bd3
No known key found for this signature in database

5
types/index.d.ts vendored

@ -62,7 +62,8 @@ export function writeFileAsync(filename: string, data: WorkBook, opts: WritingOp
export function write<T extends WritingOptionsType = WritingOptionsType>(data: WorkBook, opts: WritingOptions<T>):
T extends 'buffer' ? Uint8Array : T extends 'array' ? ArrayBuffer : string;
/** Attempts to write the workbook data as XLSX */
export function writeXLSX(data: WorkBook, opts: WritingOptions): void;
export function writeXLSX<T extends WritingOptionsType = WritingOptionsType>(data: WorkBook, opts: WritingOptions<T>):
T extends 'buffer' ? Uint8Array : T extends 'array' ? ArrayBuffer : string;
/** Utility Functions */
export const utils: XLSX$Utils;
@ -282,7 +283,7 @@ export interface ParsingOptions extends UTCOption, CommonOptions, DenseOption {
PRN?: boolean;
}
type WritingOptionsType = 'base64' | 'binary' | 'buffer' | 'file' | 'array' | 'string';
export type WritingOptionsType = 'base64' | 'binary' | 'buffer' | 'file' | 'array' | 'string';
/** Options for write and writeFile */
export interface WritingOptions<T extends WritingOptionsType = WritingOptionsType> extends CommonOptions {