Skip to content

Interface: CreateCommandBuilderState<TIn, TOut, THandle> ​

Defined in: builders/create-command-builder-state.ts:14

Internal copy-on-write state for createCommandBuilder.

Holds the optional input schema, output schema, partition extractor, and passive execution callback across fluent builder transitions.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownValidated command input payload type.
TOutunknownValidated command output payload type.
THandleunknownRuntime handle type of the active isolation scope.

Properties ​

PropertyModifierTypeDescriptionDefined in
extractPartitions?readonly(input) => readonly string[]Optional partition extractor.builders/create-command-builder-state.ts:20
fn?readonly(input, ctx) => Promise<TOut>Passive step callback.builders/create-command-builder-state.ts:22
inputSchema?readonlyZodType<TIn, unknown, $ZodTypeInternals<TIn, unknown>>Input schema.builders/create-command-builder-state.ts:16
outputSchema?readonlyZodType<TOut, unknown, $ZodTypeInternals<TOut, unknown>>Output schema.builders/create-command-builder-state.ts:18

Released under the MIT License.