From 9893d0c1eb95cc876b044c111986f059f6873c1e Mon Sep 17 00:00:00 2001 From: Nero Date: Tue, 7 May 2024 12:58:27 +0700 Subject: [PATCH] Update index.d.ts (#922) --- src/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.d.ts b/src/index.d.ts index 4b235820..f0d84bcf 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,6 +1,6 @@ declare namespace Tesseract { function createScheduler(): Scheduler - function createWorker(langs?: string | Lang[], oem?: OEM, options?: Partial, config?: string | Partial): Promise + function createWorker(langs?: string | string[] | Lang[], oem?: OEM, options?: Partial, config?: string | Partial): Promise function setLogging(logging: boolean): void function recognize(image: ImageLike, langs?: string, options?: Partial): Promise function detect(image: ImageLike, options?: Partial): any