1 |
|
2 |
|
3 | export interface Hook {
|
4 | (m: { extensions: string } | NodeModule): any;
|
5 | install(m?: { extension: string; [key: string]: any }): void;
|
6 | }
|
7 |
|
8 | export type RegisterFn = (hook: Hook) => void;
|
9 |
|
10 | export interface ExtensionDescriptor {
|
11 | module: string;
|
12 | register: RegisterFn;
|
13 | }
|
14 |
|
15 | export type Extension = string | ExtensionDescriptor | Array<string | ExtensionDescriptor>;
|
16 | export interface Extensions {
|
17 | [extension: string]: Extension | null;
|
18 | }
|
19 |
|
20 | export const extensions: Extensions;
|
21 | export const jsVariants: Extensions;
|