MCPcopy Create free account
hub / github.com/middleapi/orpc / input

Method input

packages/server/src/builder.ts:243–251  ·  view source on GitHub ↗

* Defines the input validation schema. * * @see https://orpc.dev/docs/procedure#input-output-validation Input Validation Docs

(
    schema: USchema,
  )

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

fallbackConfigFunction · 0.90

Tested by

no test coverage detected