SysProM
    Preparing search index...

    Type Alias DefinedOperation<TInput, TOutput>

    DefinedOperation: (input: z.infer<TInput>) => z.infer<TOutput> & {
        def: OperationDef<TInput, TOutput>;
        inputSchema: TInput;
        outputSchema: TOutput;
    }

    A callable operation with attached metadata. Can be invoked directly as a function, and also exposes .def, .inputSchema, and .outputSchema for introspection.

    Type Parameters

    • TInput extends z.ZodType = z.ZodType

      Zod schema type for the operation's input.

    • TOutput extends z.ZodType = z.ZodType

      Zod schema type for the operation's output.

    Type Declaration

    • def: OperationDef<TInput, TOutput>

      The full operation definition including name, description, and schemas.

    • inputSchema: TInput

      Zod schema for validating input before execution.

    • outputSchema: TOutput

      Zod schema describing the output shape.