Skip to content

Commit

Permalink
Merge pull request #72 from dimip1606/bugfix/isHTML-typescript-declar…
Browse files Browse the repository at this point in the history
…ation

index.d.ts: fix isHTML and detect typescript declarations
  • Loading branch information
dachev authored Aug 10, 2022
2 parents b870294 + 435950b commit db3094a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface Chunk {
readonly bytes: number;
}
interface Options {
readonly isHTML: false;
readonly isHTML: boolean;
readonly languageHint: string;
readonly encodingHint: string;
readonly tldHint: string;
Expand All @@ -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 db3094a

Please sign in to comment.