UNPKG

@nexica/nestjs-trpc

Version:
23 lines (22 loc) 680 B
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; }