UNPKG

react-torch

Version:

A lib to server-side render with react.

11 lines (10 loc) 474 B
/// <reference types="react" /> import type { TorchConfig, IntegralTorchConfig, RenderContext } from '../index'; export declare type TorchRender = (renderContext: RenderContext) => Promise<JSX.Element>; export declare type Torch = { config: IntegralTorchConfig; static: () => string; render: TorchRender; }; export default function torch(draftConfig: TorchConfig): Promise<Torch>; export declare const pureTorch: (config: IntegralTorchConfig) => Promise<Torch>;