Skip to content

Type Alias: JsonOutputErrorOptions ​

Options for JsonOutputError.

Signature ​

ts
export type JsonOutputErrorOptions = { code: JsonOutputErrorCode; values?: Record<string, unknown>; cause?: unknown }

Properties ​

NameTypeDescription
cause (optional)unknownUnderlying cause, such as the error of JSON.stringify.
codeJsonOutputErrorCodeThe code of the error, which is also the resource key of its message.
values (optional)Record<string, unknown>Values used when localizing the message.

Released under the MIT License.