fuzzyjs
Version:
Simple fuzzy matching
12 lines (11 loc) • 506 B
TypeScript
import { TestOptions } from "../test";
/**
* This functions is used to throw when query or source is not defined as well
* as normalizing and lower casing the input strings.
*
* @param query The fuzzy query string
* @param source The fuzzy source string
* @param opts An options object that can contains `caseSensitive`
* @returns The reshaped query string and the reshaped source string.
*/
export declare function reshapeInput(query: string, source: string, opts: TestOptions): [string, string];