1.4.5 • Published 6 months ago
@types/js-worker-search v1.4.5
Installation
npm install --save @types/js-worker-search
Summary
This package contains type definitions for js-worker-search (https://github.com/bvaughn/js-worker-search).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-worker-search.
index.d.ts
// Type definitions for js-worker-search 1.4
// Project: https://github.com/bvaughn/js-worker-search
// Definitions by: Peter Balogh <https://github.com/pbalogh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export enum INDEX_MODES {
ALL_SUBSTRINGS = 'ALL_SUBSTRINGS',
EXACT_WORDS = 'EXACT_WORDS',
PREFIXES = 'PREFIXES',
}
export default class SearchApi {
constructor(someParam?: {
indexMode?: INDEX_MODES | undefined;
tokenizePattern?: RegExp | undefined;
caseSensitive?: boolean | undefined;
matchAnyToken?: boolean | undefined;
});
indexDocument(uid: string, text: string): void;
search(query: string): Promise<string[]>;
terminate(): void;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 16:22:46 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Peter Balogh.