Skip to content

Commit

Permalink
index.d.ts: change Options.isHTML to boolean type
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitrios Pappas committed Aug 9, 2022
1 parent b870294 commit f130b21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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,4 @@ 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>;
}
}

0 comments on commit f130b21

Please sign in to comment.