Skip to content

Instantly share code, notes, and snippets.

@RWOverdijk
Created October 31, 2018 12:06
Show Gist options
  • Save RWOverdijk/0553de8e79ee41d4d3b80e326e0a00b3 to your computer and use it in GitHub Desktop.
Save RWOverdijk/0553de8e79ee41d4d3b80e326e0a00b3 to your computer and use it in GitHub Desktop.
export interface ModuleInterface {
onBootstrap?: (event?: Event<any>) => void | Promise<any>;
getConfig?: (mode?: string) => { [key: string]: any } | Promise<{ [key: string]: any }>;
getServerConfig?: () => { [key: string]: any } | Promise<{ [key: string]: any }>;
getCliConfig?: () => { [key: string]: any } | Promise<{ [key: string]: any }>;
init?: (moduleManager?: ModuleManager) => void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment