mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Merge pull request #8598 from pelikhan/patch-1
Updated Fuse.js definition to 2.2.0 (partially)
This commit is contained in:
7
fuse/fuse.d.ts
vendored
7
fuse/fuse.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Fuse.js 1.1.5
|
||||
// Type definitions for Fuse.js 2.2.0
|
||||
// Project: https://github.com/krisk/Fuse
|
||||
// Definitions by: Greg Smith <https://github.com/smrq/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -11,12 +11,13 @@ declare class Fuse {
|
||||
declare namespace fuse {
|
||||
interface IFuseOptions extends ISearchOptions {
|
||||
caseSensitive?: boolean;
|
||||
includeScore?: boolean;
|
||||
include?: string[];
|
||||
shouldSort?: boolean;
|
||||
searchFn?: any;
|
||||
sortFn?: (a: {score: number}, b: {score: number}) => number;
|
||||
getFn?: (obj: any, path: string) => any;
|
||||
keys?: string[];
|
||||
keys?: string[] | { name:string; weight:number} [];
|
||||
verbose?:boolean;
|
||||
}
|
||||
|
||||
interface ISearchOptions {
|
||||
|
||||
Reference in New Issue
Block a user