UNPKG

piral-ng

Version:

Plugin for integrating Angular components in Piral.

6 lines (5 loc) 548 B
import type { BaseComponentProps, ComponentContext, Disposable, PiletApi } from 'piral-core'; import type { BehaviorSubject } from 'rxjs'; import type { Type, NgLazyType, PrepareBootstrapResult } from './types'; export declare function prepareBootstrap(moduleOrComponent: Type<any> | NgLazyType, piral: PiletApi): Promise<PrepareBootstrapResult>; export declare function bootstrap<TProps extends BaseComponentProps>(result: PrepareBootstrapResult, node: HTMLElement, props: BehaviorSubject<TProps>, context: ComponentContext): Promise<Disposable>;