From b588e9f6188deb4c5096410b764a202316b48589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Marty=C5=84ski?= Date: Fri, 8 Nov 2019 17:11:15 +0100 Subject: [PATCH] fix typings --- src/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index 05a59bb..38b97b1 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -3,7 +3,7 @@ declare namespace Tesseract { function createWorker(options?: Partial): Worker function setLogging(logging: boolean): void function recognize(image: ImageLike, langs?: string, options?: Partial): Promise - function detect(image: ImageLike, options?: Partial) + function detect(image: ImageLike, options?: Partial): any interface Scheduler { addWorker(worker: Worker): string @@ -32,7 +32,7 @@ declare namespace Tesseract { cacheMethod: string workerBlobURL: boolean gzip: boolean - logger: (any) => void + logger: (arg: any) => void } interface WorkerParams { tessedit_ocr_engine_mode: OEM