Skip to content

Commit

Permalink
Update TypeScript declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg authored Feb 18, 2023
1 parent baa41c7 commit 28c9bed
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 28c9bed

Please sign in to comment.