#3075·exceljs

[BUG] index.d.ts: stream.xlsx.WorksheetReader declares no name, though WorkbookReader assigns one

Author: vzakharovCreated Aug 24, 2026Updated Aug 24, 2026

Description

lib/stream/xlsx/workbook-reader.js assigns each WorksheetReader its name from the workbook's sheet index, and it is the natural way to identify a worksheet yielded by for await (const worksheet of reader). But index.d.ts declares no name on the class, so TypeScript consumers have to cast to reach it.

Suggested fix

diff
class WorksheetReader {
constructor(options: WorksheetReaderOptions);
+   name: string;
read(): Promise<void>;

Version

exceljs 4.4.0.