core/lib/tern_from_ts/defs/fuse.json.tmp
2017-05-14 13:22:31 +02:00

27 lines
583 B
Plaintext

{
"Fuse": {
"!type": "fn(list: [?], options?: fuse.IFuseOptions)",
"prototype": {
"search": "fn(pattern: string) -> [?]"
}
},
"fuse": {
"IFuseOptions": {
"caseSensitive": "bool",
"includeScore": "bool",
"shouldSort": "bool",
"searchFn": "?",
"sortFn": "fn(a: ?, b: ?)",
"getFn": "fn(obj: ?, path: string)",
"keys": "[string]"
},
"ISearchOptions": {
"location": "number",
"distance": "number",
"threshold": "number",
"maxPatternLength": "number"
}
},
"!name": "fuse.d.ts"
}