UNPKG

857 BTypeScriptView Raw
1import { RenderOptions as RenderOptions_2 } from '@nguniversal/common/engine';
2import type { Request as Request_2 } from 'express';
3import type { Response as Response_2 } from 'express';
4
5/**
6 * This is an express engine for handling Angular Applications
7 */
8export declare function ngExpressEngine(setupOptions: Readonly<NgSetupOptions>): (filePath: string, options: object, callback: (err?: Error | null, html?: string) => void) => void;
9
10/**
11 * These are the allowed options for the engine
12 */
13export declare interface NgSetupOptions extends Pick<RenderOptions_2, 'providers' | 'publicPath' | 'inlineCriticalCss'> {
14 bootstrap: NonNullable<RenderOptions_2['bootstrap']>;
15}
16
17/**
18 * These are the allowed options for the render
19 */
20export declare interface RenderOptions extends RenderOptions_2 {
21 req: Request_2;
22 res?: Response_2;
23}
24
25export { }