UNPKG

@spartacus/setup

Version:

Includes features that makes Spartacus and it's setup easier and streamlined.

19 lines (18 loc) 1.02 kB
import { NgSetupOptions } from '@nguniversal/express-engine'; import { SsrCallbackFn } from '../optimized-engine/optimized-ssr-engine'; import { SsrOptimizationOptions } from '../optimized-engine/ssr-optimization-options'; export declare type NgExpressEngineInstance = (filePath: string, options: object, callback: SsrCallbackFn) => void; export declare type NgExpressEngine = (setupOptions: Readonly<NgSetupOptions>) => NgExpressEngineInstance; /** * The wrapper over the standard ngExpressEngine, that provides tokens for Spartacus * @param ngExpressEngine */ export declare class NgExpressEngineDecorator { /** * Returns the higher order ngExpressEngine with provided tokens for Spartacus * * @param ngExpressEngine */ static get(ngExpressEngine: NgExpressEngine, optimizationOptions?: SsrOptimizationOptions | null): NgExpressEngine; } export declare function decorateExpressEngine(ngExpressEngine: NgExpressEngine, optimizationOptions?: SsrOptimizationOptions | null): NgExpressEngine;