UNPKG

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