Skip to content

Commit 300351c

Browse files
authored
fix(types): Fix type declaration file
Fix bug ```Type annotation cannot appear on a constructor declaration.```
1 parent fb591e7 commit 300351c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type DataEntry = {
1515
export type ItemHandler = (err: Error, data: DataEntry) => void;
1616

1717
export declare class PdfReader {
18-
constructor(opts: InitOptions | null): PdfReader;
18+
constructor(opts: InitOptions | null);
1919
parseFileItems(pdfFilePath: string, itemHandler: ItemHandler): void;
2020
parseBuffer(buffer: Buffer, itemHandler: ItemHandler): void;
21-
}
21+
}

0 commit comments

Comments
 (0)