From a12fd8287a730917d8b25931a8341869bea88cd0 Mon Sep 17 00:00:00 2001 From: Blagovest Dachev Date: Sun, 17 Jul 2022 11:34:20 +0700 Subject: [PATCH] Updates Typescript declarations --- index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.d.ts b/index.d.ts index b295da0..947823f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -27,4 +27,5 @@ export declare module 'cld' { declare function detect(text: string, options: Options, callback: (err: string, result: DetectLanguage) => void): void; declare function detect(text: string, callback: (err: string, result: DetectLanguage) => void): void; declare function detect(text: string, options: Options): Promise; + declare function detect(text: string): Promise; } \ No newline at end of file