UNPKG

@bolttech/server-side-next

Version:

This library was generated with [Nx](https://nx.dev).

25 lines (24 loc) 742 B
import { ComponentType, FC, PropsWithChildren, ReactElement } from 'react'; export declare type DefaultProps = { [key: string]: any; functions?: [ { name: string; bind: string; } ]; }; export declare type Component<P = DefaultProps, C = DefaultProps> = { name: string; props?: P; childrens?: Component<C>[]; }; export declare type ComponentRender<P = Record<string, unknown>> = Component & { Component: ComponentType<ReactElement>; childrens?: ComponentRender[]; props?: P; }; export declare type ComponentWithChildren<P = unknown> = FC<PropsWithChildren<P>>; export declare type ComponentImport = { [key: string]: ComponentType<any>; };