Skip to content

Commit 99074f7

Browse files
authored
Merge pull request #1338 from JuhBoy/fix/typescript-type-async-iterators
Fix: Async iterators defition
2 parents 1588de1 + 2d82154 commit 99074f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,12 @@ export type CellValue =
390390
insetmode: 'auto' | 'custom';
391391
inset: Number[];
392392
}
393-
393+
394394
export interface CommentProtection {
395395
locked: 'True' | 'False';
396396
lockText: 'True' | 'False';
397397
}
398-
398+
399399
export type CommentEditAs = 'twoCells' | 'oneCells' | 'absolute';
400400

401401
export interface Comment {
@@ -1201,13 +1201,13 @@ export interface Worksheet {
12011201
addRows(rows: any[], styleOption: string): void;
12021202

12031203
/**
1204-
* Insert a Row by key-value, at the pos (shifiting down all rows from pos),
1204+
* Insert a Row by key-value, at the pos (shifiting down all rows from pos),
12051205
* using the column keys, or add a row by contiguous Array (assign to columns A, B & C)
12061206
*/
12071207
insertRow(pos: number, value: any[] | any, styleOption: string): Row;
12081208

12091209
/**
1210-
* Insert multiple rows at pos (shifiting down all rows from pos)
1210+
* Insert multiple rows at pos (shifiting down all rows from pos)
12111211
* by providing an array of arrays or key-value pairs
12121212
*/
12131213
insertRows(pos: number, values: any[], styleOption: string): void;
@@ -1957,7 +1957,7 @@ export namespace stream {
19571957
class WorkbookReader extends Workbook {
19581958
constructor(input: string | import('stream').Stream, options: Partial<WorkbookStreamReaderOptions>);
19591959
read(): Promise<void>;
1960-
[Symbol.asyncIterator]: AsyncIterator<WorksheetReader>;
1960+
[Symbol.asyncIterator](): AsyncGenerator<WorksheetReader>;
19611961
parse(): AsyncIterator<any>;
19621962
}
19631963

@@ -1971,7 +1971,7 @@ export namespace stream {
19711971
class WorksheetReader {
19721972
constructor(options: WorksheetReaderOptions);
19731973
read(): Promise<void>;
1974-
[Symbol.asyncIterator]: AsyncIterator<Row>;
1974+
[Symbol.asyncIterator](): AsyncGenerator<Row>;
19751975
parse(): AsyncIterator<Array<any>>;
19761976
dimensions(): number;
19771977
columns(): number;

0 commit comments

Comments
 (0)