UNPKG

377 BTypeScriptView Raw
1/// <reference types="react" />
2import * as React from 'react';
3import { RouteProps } from 'react-router-dom';
4export declare type AfterRenderProps<T> = T & {
5 req: any;
6 res: any;
7 assets: any;
8 routes: Partial<RouteProps>[];
9 document?: React.ComponentType<any>;
10};
11export declare function render<T>(options: AfterRenderProps<T>): Promise<string | undefined>;