npm.io
1.0.2 • Published 2 years ago

@types/searchjs

Licence
MIT
Version
1.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Melvin Mupondori.