UNPKG

@mondora/microfrontends

Version:

Library for embedding frontends into one another

18 lines (17 loc) 457 B
import { IMethods } from "penpal"; export default class ChildApp { private iframe; private onLaunched; private childOrigin?; private suppliedMethods?; private launchData?; private childMethods; constructor(options: { iframe: HTMLIFrameElement; onLaunched: (this: ChildApp) => void; childOrigin?: string; suppliedMethods?: IMethods; launchData?: any; }); launch(): Promise<void>; }