Skip to content

Commit

Permalink
chore: bump to v6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dtarnawsky committed Apr 16, 2024
1 parent f423f9a commit 34823ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions dist/esm/definitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ export interface CapacitorOcrPlugin {
* Detect text in an image
* @param options Options for text detection
*/
detectText(options: DetectTextOptions): Promise<TextDetections>;
detectText(options: DetectTextFileOptions | DetectTextBase64Options): Promise<TextDetections>;
}
export interface DetectTextOptions {
export interface DetectTextFileOptions {
filename: string;
orientation?: ImageOrientation;
}
export interface DetectTextBase64Options {
base64: string;
orientation?: ImageOrientation;
}
export interface TextDetections {
textDetections: TextDetection[];
}
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/definitions.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@capacitor-community/image-to-text",
"version": "6.0.0",
"version": "6.0.1",
"description": "Image to Text (OCR) Plugin for Capacitor",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit 34823ab

Please sign in to comment.