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.