Type Alias: CommandResolutionErrorOptions
Options for CommandResolutionError.
Signature
ts
export type CommandResolutionErrorOptions = { code?: CommandResolutionErrorCode; values?: Record<string, unknown>; commandPath?: readonly string[]; candidatePaths?: readonly (readonly string[])[]; cause?: unknown }Properties
| Name | Type | Description |
|---|---|---|
candidatePaths (optional) | readonly (readonly string[])[] | Candidate command paths considered by the resolver. |
cause (optional) | unknown | Underlying cause. |
code (optional) | CommandResolutionErrorCode | Localization resource key for the resolution failure. |
commandPath (optional) | readonly string[] | Command path at which the resolution failed. |
values (optional) | Record<string, unknown> | Values used when localizing the message. |
