# @types/searchjs

> TypeScript definitions for searchjs

Latest version **1.0.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/searchjs
pnpm add @types/searchjs
yarn add @types/searchjs
bun add @types/searchjs
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-11-07 |
| First published | 2020-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51433 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/searchjs
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/searchjs
- npm.io page: https://npm.io/package/@types/searchjs

## Recent versions

- 1.0.2 (latest) — 2023-11-07
- 1.0.0 (ts2.9) — 2020-05-04
- 1.0.1 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/searchjs/index.d.ts)
````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](https://github.com/iammerus).

---
_Source: https://npm.io/package/@types/searchjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
