UNPKG

@mondora/microfrontends

Version:

Library for embedding frontends into one another

15 lines (14 loc) 494 B
declare type OnLaunchHandler<LaunchData> = (this: ParentApp<LaunchData>, launchData: LaunchData) => void | Promise<void>; export default class ParentApp<LaunchData> { private onLaunch; private parentOrigin?; private launched; private parentMethods; constructor(options: { onLaunch: OnLaunchHandler<LaunchData>; parentOrigin?: string; }); call<ReturnValue = any>(method: string, ...params: any): Promise<ReturnValue>; private launch; } export {};