Installation
npm install --save @types/franc
Summary
This package contains type definitions for franc (https://github.com/wooorm/franc/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/franc.
type ISO6393 = string;
type Confidence = number;
interface Options {
minLength?: number | undefined;
whitelist?: ISO6393[] | undefined;
blacklist?: ISO6393[] | undefined;
only?: ISO6393[] | undefined;
}
declare function detect(text: string, options?: Options): ISO6393;
declare namespace detect {
function all(text: string, options?: Options): Array<[ISO6393, Confidence]>;
}
export = detect;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by William LeGate.