@nexica/nestjs-trpc
Version:
NestJS TRPC Bridge
23 lines (22 loc) • 680 B
TypeScript
import { ContextOptions, TRPCContext } from './context.interface';
import type { Class } from 'type-fest';
import type { WebSocketServer } from 'ws';
export interface TRPCModuleOptions<TAppContext extends ContextOptions = ContextOptions> {
context?: Class<TRPCContext<TAppContext>>;
outputPath?: string;
injectFiles?: Array<string>;
generateSchemas?: boolean;
basePath?: string;
transformer?: 'superjson' | 'devalue';
websocket?: {
wss?: WebSocketServer;
port?: number;
path?: string;
enabled?: boolean;
};
driver?: 'express' | 'fastify';
}
export interface SchemaImports {
name: string;
path: string;
}