Socket
Book a DemoInstallSign in
Socket

@types/fuzzy-search

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/fuzzy-search

TypeScript definitions for fuzzy-search

ts3.6
ts3.7
Source
npmnpm
Version
2.1.1
Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/fuzzy-search

Summary

This package contains type definitions for fuzzy-search (https://github.com/wouter2203/fuzzy-search#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fuzzy-search.

index.d.ts

// Type definitions for fuzzy-search 2.1
// Project: https://github.com/wouter2203/fuzzy-search#readme
// Definitions by: Alex Deas <https://github.com/alex-deas>
//                 BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

declare class FuzzySearch<T extends object | string> {
    haystack: T[];
    keys: string[];
    options: Required<FuzzySearch.Options>;

    static isMatch(item: string, query: string, caseSensitive: boolean): number;

    constructor(haystack: T[], keys?: string[], options?: FuzzySearch.Options);
    search(needle?: string): T[];
}

declare namespace FuzzySearch {
    interface Options {
        caseSensitive?: boolean | undefined;
        sort?: boolean | undefined;
    }
}

export = FuzzySearch;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:01:56 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Alex Deas, and BendingBender.

FAQs

Package last updated on 08 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts