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
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
extractPartitions? | readonly | (input) => readonly string[] | Optional synchronous partition extractor mapping validated TIn to active partition IDs. | builders/command-config-options.ts:20 |
fn | readonly | (input, ctx) => Promise<TOut> | Passive step callback invoked by the runtime's executeCommand executor. | builders/command-config-options.ts:22 |
input | readonly | ZodType<TIn> | Zod schema validating step input before invoking fn. | builders/command-config-options.ts:16 |
output | readonly | ZodType<TOut> | Zod schema validating step output returned by fn. | builders/command-config-options.ts:18 |