mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
605 B
TypeScript
24 lines
605 B
TypeScript
// Type definitions for didyoumean 1.2
|
|
// Project: https://github.com/dcporter/didyoumean.js
|
|
// Definitions by: James George <https://github.com/jamesgeorge007>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.7
|
|
|
|
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;
|
|
}
|