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