5.0.3 • Published 7 months ago
@types/franc v5.0.3
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.
index.d.ts
// Type definitions for franc 5.0
// Project: https://github.com/wooorm/franc/
// Definitions by: William LeGate <https://github.com/wlegate>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// ISO 639-3 code (see: https://iso639-3.sil.org/code_tables/639/data)
type ISO6393 = string;
// Range [0, 1]
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: Thu, 08 Jul 2021 12:01:49 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by William LeGate.