@inkline/paper
Version:
Paper is a unified interface for defining components for Vue and React using a single code base.
18 lines (17 loc) • 639 B
TypeScript
import { DefineComponentFn, DefinePluginFn } from './types-common';
import { FunctionComponent } from 'react';
export * from './types-common';
export declare type VNode = JSX.Element | null;
export declare type Slots = {
[key: string]: {
(): null;
key?: string;
};
};
export declare type DefineReactComponentFn<Props = Record<string, any>, State = Record<string, any>> = DefineComponentFn<Props, State, VNode, FunctionComponent<Props> & {
[key: string]: any;
}>;
export declare type DefineReactPluginFn<Options = any> = DefinePluginFn<FunctionComponent<{
options?: Options;
children: any;
}>, Options>;