Type Alias: CommandNotFoundErrorOptions
Options for CommandNotFoundError.
Signature
ts
export type CommandNotFoundErrorOptions = { code?: CommandNotFoundErrorCode; values?: Record<string, unknown>; commandName: string; candidates?: readonly string[]; commandPath?: readonly string[]; cause?: unknown }Properties
| Name | Type | Description |
|---|---|---|
candidates (optional) | readonly string[] | Command names available at the same level. |
cause (optional) | unknown | Underlying cause. |
code (optional) | CommandNotFoundErrorCode | Localization resource key for command-not-found rendering. |
commandName | string | The command name that could not be resolved. |
commandPath (optional) | readonly string[] | Parent command path where resolution failed. |
values (optional) | Record<string, unknown> | Values used when localizing the message. |
