Installation
npm install --save @types/didyoumean
Summary
This package contains type definitions for didyoumean (https://github.com/dcporter/didyoumean.js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/didyoumean.
export = didYouMean;
declare function didYouMean(str: string, list: string[], key?: string): string | string[];
declare namespace didYouMean {
let caseSensitive: boolean;
let nullResultValue: any;
let returnFirstMatch: boolean;
let returnWinningObject: boolean;
let threshold: number;
let thresholdAbsolute: number;
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by James George.