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

1.1.5 • Public • Published

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 23:36:23 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/abbrev

      Weekly Downloads

      19,912

      Version

      1.1.5

      License

      MIT

      Unpacked Size

      3.78 kB

      Total Files

      5

      Last publish

      Collaborators

      • types