@types/didyoumean
Version:
TypeScript definitions for didyoumean
13 lines (10 loc) • 393 B
TypeScript
export = didYouMean;
declare function didYouMean(str: string, list: string[] | Array<Record<string, string>>, key?: string): string | null;
declare namespace didYouMean {
let caseSensitive: boolean;
let nullResultValue: any;
let returnFirstMatch: boolean;
let returnWinningObject: boolean | null;
let threshold: number | null;
let thresholdAbsolute: number | null;
}