UNPKG

piral-ng

Version:

Plugin for integrating Angular components in Piral.

13 lines (12 loc) 602 B
import { ApplicationConfig, Type } from '@angular/core'; import type { BaseComponentProps, HtmlComponent } from 'piral-core'; export * from './injection'; export interface DefaultExport<T> { default: T; } export type NgStandaloneComponentLoader = () => Promise<DefaultExport<Type<any>>>; export type NgStandaloneComponent = Type<any> | NgStandaloneComponentLoader; export interface NgStandaloneConverter { <TProps extends BaseComponentProps>(component: NgStandaloneComponent): HtmlComponent<TProps>; } export declare function createConverter(options: ApplicationConfig): NgStandaloneConverter;