@types/didyoumean
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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.

index.d.ts

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/didyoumean

Weekly Downloads

15,402

Version

1.2.2

License

MIT

Unpacked Size

3.26 kB

Total Files

5

Last publish

Collaborators

  • types