Skip to content

Commit

Permalink
Merge pull request #75 from queengooborg/patch-1
Browse files Browse the repository at this point in the history
Update TypeScript declarations
  • Loading branch information
dachev authored Feb 18, 2023
2 parents baa41c7 + 28c9bed commit 38d7475
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ interface DetectLanguage {
readonly chunks: Chunk[];
}
export declare module 'cld' {
const LANGUAGES: {[name: string]: string};
const DETECTED_LANGUAGES: string[];
const ENCODINGS: string[];

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<DetectLanguage>;
Expand Down

0 comments on commit 38d7475

Please sign in to comment.