* Defines the input validation schema. * * @see https://orpc.dev/docs/procedure#input-output-validation Input Validation Docs
(
schema: USchema,
)
| 241 | * @see {@link https://orpc.dev/docs/procedure#input-output-validation Input Validation Docs} |
| 242 | */ |
| 243 | input<USchema extends AnySchema>( |
| 244 | schema: USchema, |
| 245 | ): ProcedureBuilderWithInput<TInitialContext, TCurrentContext, USchema, TOutputSchema, TErrorMap, TMeta> { |
| 246 | return new Builder({ |
| 247 | ...this['~orpc'], |
| 248 | inputSchema: schema, |
| 249 | inputValidationIndex: fallbackConfig('initialInputValidationIndex', this['~orpc'].config.initialInputValidationIndex) + this['~orpc'].middlewares.length, |
| 250 | }) as any |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * Defines the output validation schema. |
nothing calls this directly
no test coverage detected