Skip to content

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 ​

NameTypeDescription
candidatePaths (optional)readonly (readonly string[])[]Candidate command paths considered by the resolver.
cause (optional)unknownUnderlying cause.
code (optional)CommandResolutionErrorCodeLocalization 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.

Released under the MIT License.