diff --git a/index.d.ts b/index.d.ts index 35bd5cd..323bfd6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -9,19 +9,20 @@ declare module "react-native-tesseract-ocr" { | "bul" | "chi_sim" | "chi_tra" - | "hrv" | "custom" | "dan" + | "deu" | "eng" | "est" + | "fas" | "fra" + | "gle" | "glg" - | "deu" | "heb" + | "hrv" | "hun" - | "isl" | "ind" - | "gle" + | "isl" | "ita" | "jpn" | "kor" @@ -29,13 +30,12 @@ declare module "react-native-tesseract-ocr" { | "lit" | "nep" | "nor" - | "fas" | "pol" | "por" | "rus" - | "srp" | "slk" | "spa" + | "srp" | "swe" | "tur" | "ukr" @@ -49,7 +49,7 @@ declare module "react-native-tesseract-ocr" { export interface ITesseractOcrModule { clear(): void; recognize(path: string, lang: Lang, options?: Options): Promise; - stop(): void; + stop(): Promise; } const TesseractOcr: ITesseractOcrModule;