@types/fuzzaldrin-plus
TypeScript icon, indicating that this package has built-in type declarations

0.6.5 • Public • Published

Installation

npm install --save @types/fuzzaldrin-plus

Summary

This package contains type definitions for fuzzaldrin-plus (https://github.com/jeancroy/fuzzaldrin-plus/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fuzzaldrin-plus.

index.d.ts

export as namespace fuzzaldrin;

export class Query {
    $$__internal: Symbol;
}

export interface IOptions {
    allowErrors?: boolean | undefined;
    usePathScoring?: boolean | undefined;
    useExtensionBonus?: boolean | undefined;
    pathSeparator?: "/" | "\\" | string | undefined;
    optCharRegEx?: RegExp | undefined;
    wrap?: { tagOpen?: string | undefined; tagClass?: string | undefined; tagClose?: string | undefined } | undefined;
    preparedQuery?: Query | undefined;
}

export type IFilterOptions<T> = IOptions & {
    key?: T extends string ? never : keyof T | undefined;
    maxResults?: number | undefined;
    maxInners?: number | undefined;
};

export function filter<T>(
    data: T[],
    query: string,
    options?: IFilterOptions<T>,
): T[];
export function score(str: string, query: string, options?: IOptions): number;
export function match(str: string, query: string, options?: IOptions): number[];
export function wrap(str: string, query: string, options?: IOptions): string;
export function prepareQuery(query: string, options?: IOptions): Query;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Jean Christophe Roy, Jason Killian, and Ronald Rey.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.6.213,793ts3.6
0.6.213,793ts3.7
0.6.213,793ts3.8
0.6.213,793ts3.9
0.6.213,793ts4.0
0.6.213,793ts4.1
0.6.213,793ts4.2
0.6.213,793ts4.3
0.6.213,793ts4.4
0.6.55,143ts5.7
0.6.55,143ts5.6
0.6.55,143latest
0.6.55,143ts4.5
0.6.55,143ts4.6
0.6.55,143ts4.7
0.6.55,143ts4.8
0.6.55,143ts4.9
0.6.55,143ts5.0
0.6.55,143ts5.1
0.6.55,143ts5.2
0.6.55,143ts5.3
0.6.55,143ts5.4
0.6.55,143ts5.5
0.6.55,143ts5.8
0.6.02,318ts2.4
0.6.02,318ts2.5
0.6.02,318ts2.6
0.6.02,318ts2.7
0.6.02,318ts2.8
0.6.02,318ts2.9
0.0.1515ts2.0
0.0.1515ts2.1
0.0.1515ts2.2
0.0.1515ts2.3
0.6.1408ts3.0
0.6.1408ts3.1
0.6.1408ts3.2
0.6.1408ts3.3
0.6.1408ts3.4
0.6.1408ts3.5

Version History

VersionDownloads (Last 7 Days)Published
0.6.55,143
0.6.46
0.6.3992
0.6.213,793
0.6.1408
0.6.02,318
0.0.1515

Package Sidebar

Install

npm i @types/fuzzaldrin-plus

Weekly Downloads

23,175

Version

0.6.5

License

MIT

Unpacked Size

5.16 kB

Total Files

5

Last publish

Collaborators

  • types