npm.io
1.1.5 • Published 2 years ago

@types/abbrev

Licence
MIT
Version
1.1.5
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.3K

Installation

npm install --save @types/abbrev

Summary

This package contains type definitions for abbrev (https://github.com/isaacs/abbrev-js#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/abbrev.

index.d.ts

export = abbrev;

declare function abbrev(words: readonly abbrev.Abbreviable[]): { [abbreviation: string]: string };
declare function abbrev(...words: readonly abbrev.Abbreviable[]): { [abbreviation: string]: string };

declare namespace abbrev {
    function monkeyPatch(): void;

    type Abbreviable = string | { toString(): string };
}

declare global {
    interface Array<T> {
        abbrev(): { [abbreviation: string]: string };
    }

    interface ReadonlyArray<T> {
        abbrev(): { [abbreviation: string]: string };
    }

    interface Object {
        abbrev(): { [abbreviation: string]: string };
    }
}

Additional Details

  • Last updated: Mon, 20 Nov 2023 2323 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.