UNPKG

@nexica/nestjs-trpc

Version:
21 lines (20 loc) 499 B
import { z } from 'zod/v4'; type ZodTypeAny = z.ZodType; export interface GeneratorOptions { outputPath: string; context?: unknown; includeTypes?: boolean; includeComments?: boolean; } export interface GeneratorContext { instance: unknown; procedures: Record<string, ProcedureInfo>; } export interface ProcedureInfo { name: string; type: 'query' | 'mutation' | 'subscription'; input?: ZodTypeAny; output?: ZodTypeAny; middlewares?: string[]; } export {};