UNPKG

@types/abbrev

Version:
25 lines (18 loc) 623 B
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 }; } }