Skip to content

Interface: CommandConfigOptions<TIn, TOut, THandle> ​

Defined in: builders/command-config-options.ts:14

Direct configuration object accepted by the 2-argument P.command(id, options) overload.

Bundles the input Zod schema, output Zod schema, optional partition extractor, and passive execution callback into a single options object.

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 synchronous partition extractor mapping validated TIn to active partition IDs.builders/command-config-options.ts:20
fnreadonly(input, ctx) => Promise<TOut>Passive step callback invoked by the runtime's executeCommand executor.builders/command-config-options.ts:22
inputreadonlyZodType<TIn>Zod schema validating step input before invoking fn.builders/command-config-options.ts:16
outputreadonlyZodType<TOut>Zod schema validating step output returned by fn.builders/command-config-options.ts:18

Released under the MIT License.