Browse Source

Merge pull request #357 from elderapo/fix-typings

Fix typings
pull/368/head
jeromewu 5 years ago committed by GitHub
parent
commit
dd61663b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/index.d.ts

4
src/index.d.ts vendored

@ -3,7 +3,7 @@ declare namespace Tesseract {
function createWorker(options?: Partial<WorkerOptions>): Worker function createWorker(options?: Partial<WorkerOptions>): Worker
function setLogging(logging: boolean): void function setLogging(logging: boolean): void
function recognize(image: ImageLike, langs?: string, options?: Partial<WorkerOptions>): Promise<RecognizeResult> function recognize(image: ImageLike, langs?: string, options?: Partial<WorkerOptions>): Promise<RecognizeResult>
function detect(image: ImageLike, options?: Partial<WorkerOptions>) function detect(image: ImageLike, options?: Partial<WorkerOptions>): any
interface Scheduler { interface Scheduler {
addWorker(worker: Worker): string addWorker(worker: Worker): string
@ -32,7 +32,7 @@ declare namespace Tesseract {
cacheMethod: string cacheMethod: string
workerBlobURL: boolean workerBlobURL: boolean
gzip: boolean gzip: boolean
logger: (any) => void logger: (arg: any) => void
} }
interface WorkerParams { interface WorkerParams {
tessedit_ocr_engine_mode: OEM tessedit_ocr_engine_mode: OEM

Loading…
Cancel
Save