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