diff --git a/src/index.d.ts b/src/index.d.ts index 9df6184..364e618 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