Skip to content

Commit

Permalink
Updates Typescript declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
dachev committed Jul 17, 2022
1 parent b870294 commit a12fd82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<DetectLanguage>;
declare function detect(text: string): Promise<DetectLanguage>;
}

0 comments on commit a12fd82

Please sign in to comment.