mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Update type for Options interface in franc package (#42327)
* Update type for Options interface in franc package As documented here: https://github.com/wooorm/franc/issues/80 adding this type enables the use of `franc.all` additionally with an `only` languages array when using TypeScript. Thank you! * Update index.d.ts update with recommended simple type declaration `ERROR: 16:12 array-type Array type using 'Array<T>' is forbidden for simple types. Use 'T[]' instead.`
This commit is contained in:
parent
09262345ab
commit
2ef0c19e45
1
types/franc/index.d.ts
vendored
1
types/franc/index.d.ts
vendored
@ -13,6 +13,7 @@ interface Options {
|
||||
minLength?: number;
|
||||
whitelist?: ISO6393[];
|
||||
blacklist?: ISO6393[];
|
||||
only?: string[];
|
||||
}
|
||||
|
||||
declare function detect(text: string, options?: Options): ISO6393;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user