Skip to content

Type Alias: PromptParamsMap

ts
type PromptParamsMap = Record<string, PromptParamDef>;

Defined in: packages/core/src/prompt/types.ts:321

Map of prompt argument names to their flat-only definitions.

Example

typescript
const args: PromptParamsMap = {
    month: { enum: ['january', 'february'] },
    limit: { type: 'number', min: 1, max: 100 },
    verbose: 'boolean',
};