Closed wclr closed 4 years ago
Typings of options allow to privide illegal options: https://github.com/krisk/Fuse/blob/master/src/index.d.ts#L4
So currently this is possible:
new Fuse(items, { whatever: true })
Is there a reason why not change it to:
declare class Fuse<T> { constructor(list: ReadonlyArray<T>, options?: Fuse.IFuseOptions<T>, index?: FuseIndex<T>)
?
Good catch. Will update.
Describe the bug
Typings of options allow to privide illegal options: https://github.com/krisk/Fuse/blob/master/src/index.d.ts#L4
So currently this is possible:
Is there a reason why not change it to:
?