UNPKG

nestjs-inertia

Version:

Unofficial NestJS (express platform) adapter for InertiaJS.

18 lines (17 loc) 605 B
import { Request, Response } from "express"; export default class Inertia implements InertiaInterface { private req; private res; private component; private version; private sharedProps; constructor(req: Request, res: Response, version?: string | number); checkVersion(): boolean; flushShared(): void; getShared(key?: string | number, defaultKey?: string | number): object; getVersion(): string | number; location(url: string): void; share(props: object): void; render(component?: string, props?: any): Promise<void>; redirect(url: string): void; }