piral-hyperapp
Version:
Plugin for integrating hyperapp components in Piral.
14 lines (13 loc) • 545 B
TypeScript
import type { ForeignComponent, BaseComponentProps } from 'piral-core';
import type { Component } from './types';
export interface HyperappConverterOptions {
/**
* Defines the name of the root element.
* @default piral-slot
*/
rootName?: string;
}
export declare function createConverter(config?: HyperappConverterOptions): {
<TProps extends BaseComponentProps>(root: Component<TProps>, state: any, actions: any): ForeignComponent<TProps>;
Extension: Component<import("piral-core").ExtensionSlotProps, {}, {}>;
};