UNPKG

react-torch

Version:

A lib to server-side render with react.

16 lines (15 loc) 629 B
/// <reference types="react" /> import { Urls } from '../internal/utils'; import type { TorchConfig, IntegralTorchConfig, RenderContext } from '../index'; import type { Compiler } from 'webpack'; export declare type TorchRender = (renderContext: RenderContext) => Promise<JSX.Element>; export declare type Torch = { config: IntegralTorchConfig; static: () => string; public: () => string; render: TorchRender; compiler: Compiler; urls: Urls; }; export default function devTorch(draftConfig: TorchConfig): Promise<Torch>; export declare const pureDevTorch: (config: IntegralTorchConfig) => Promise<Torch>;