ViteService
@tsed/vike
Usage
typescript
import { ViteService } from "@tsed/vike";
See /packages/third-parties/vike/src/types/services/ViteService.ts.
Overview
ts
class ViteService {
static moduleName: string;
protected config: ViteConfig;
render(viewPath: string, { $ctx, ...opts }: {
$ctx: PlatformContext;
} & Record<string, any>): Promise<string | {
pipe(stream: Writable): void;
} | undefined>;
}
static moduleName
ts
static moduleName: string;
protected config
ts
protected config: ViteConfig;
render
ts
render(viewPath: string, { $ctx, ...opts }: {
$ctx: PlatformContext;
} & Record<string, any>): Promise<string | {
pipe(stream: Writable): void;
} | undefined>;