1 | export = abbrev;
|
2 |
|
3 | declare function abbrev(words: readonly abbrev.Abbreviable[]): { [abbreviation: string]: string };
|
4 | declare function abbrev(...words: readonly abbrev.Abbreviable[]): { [abbreviation: string]: string };
|
5 |
|
6 | declare namespace abbrev {
|
7 | function monkeyPatch(): void;
|
8 |
|
9 | type Abbreviable = string | { toString(): string };
|
10 | }
|
11 |
|
12 | declare global {
|
13 | interface Array<T> {
|
14 | abbrev(): { [abbreviation: string]: string };
|
15 | }
|
16 |
|
17 | interface ReadonlyArray<T> {
|
18 | abbrev(): { [abbreviation: string]: string };
|
19 | }
|
20 |
|
21 | interface Object {
|
22 | abbrev(): { [abbreviation: string]: string };
|
23 | }
|
24 | }
|