Skip to content

Commit

Permalink
Fix return type on TS is a promise, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideViolante committed May 13, 2024
1 parent de1011f commit 3e6b680
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 204 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ declare module "ocr-space-api-wrapper" {
SearchablePDFURL: string;
};

export function ocrSpace(input: string, options?: OcrSpaceOptions): OcrSpaceResponse;
export function ocrSpace(input: string, options?: OcrSpaceOptions): Promise<OcrSpaceResponse>;
}

0 comments on commit 3e6b680

Please sign in to comment.