nestjs-mvc-tools
Version:
NestJS MVC Tools is a small set of tools designed to help you get started more easily with traditional web development approaches in NestJS.
21 lines (20 loc) • 1.03 kB
TypeScript
import { Edge } from "edge.js";
import { NestMvcLoggerService } from "./nest-mvc-logger.service";
import { NestMvcOptionsService } from "./nest-mvc-options.service";
import { ViteAssetPathHelperFactoryService } from "./vite-asset-path-helper-factory.service";
export declare const GLOBALS_FACTORY_PROVIDER_TOKEN = "GLOBALS_FACTORY_PROVIDER";
/**
* Service for managing Edge.js template engine integration with NestJS.
* Provides initialization, configuration, and access to Edge.js instances for server-side rendering.
*/
export declare class EdgeJsService {
private readonly optionsService;
private readonly logger;
private readonly viteAssetPathHelperFactory;
private readonly globalsFactoryResult?;
private edgeInstance;
private readonly options;
constructor(optionsService: NestMvcOptionsService, logger: NestMvcLoggerService, viteAssetPathHelperFactory: ViteAssetPathHelperFactoryService, globalsFactoryResult?: Record<string, any> | undefined);
getEdgeInstance(): Edge;
private init;
}