piral-elm
Version:
Plugin for integrating Elm components in Piral.
14 lines (13 loc) • 499 B
TypeScript
import type { ForeignComponent, BaseComponentProps } from 'piral-core';
import type { ElmModule } from './types';
export interface ElmConverterOptions {
/**
* Defines the name of the extension component.
* @default elm-extension
*/
selector?: string;
}
export declare function createConverter(config?: ElmConverterOptions): {
<TProps extends BaseComponentProps>(main: ElmModule<TProps>, captured?: Record<string, any>): ForeignComponent<TProps>;
Extension: string;
};