Skip to content

Commit

Permalink
fix(types): Fix type declaration file
Browse files Browse the repository at this point in the history
Fix bug ```Type annotation cannot appear on a constructor declaration.```
  • Loading branch information
geniegeist committed Aug 15, 2023
1 parent fb591e7 commit 300351c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type DataEntry = {
export type ItemHandler = (err: Error, data: DataEntry) => void;

export declare class PdfReader {
constructor(opts: InitOptions | null): PdfReader;
constructor(opts: InitOptions | null);
parseFileItems(pdfFilePath: string, itemHandler: ItemHandler): void;
parseBuffer(buffer: Buffer, itemHandler: ItemHandler): void;
}
}

0 comments on commit 300351c

Please sign in to comment.