Installation
npm install --save @types/searchjs
Summary
This package contains type definitions for searchjs (https://github.com/deitch/searchjs).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/searchjs.
index.d.ts
export function setDefaults(options: {
negator: boolean;
joinAnd: string;
text: boolean;
word: boolean;
start: boolean;
end: boolean;
separator: string;
propertySearch: boolean;
propertySearchDepth: number;
}): void;
export function resetDefaults(): void;
export function singleMatch(field: any, s: any, text: boolean, word: boolean, start: boolean, end: boolean): any;
export function matchArray(ary: any[], search: any): any;
export function matchObject(obj: any, search: any): any;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Melvin Mupondori.