@ocubist/error-alchemy
Version:
A powerful Node.js error-handling-framework with custom error types for easy debugging, enhanced error management, strong zod-support and useful quality-of-life-functionality for asserting and validating values.
18 lines (16 loc) • 541 B
text/typescript
import { ErrorCode } from "../error-code/types";
/**
* Properties required to create an identifier.
*
* @typedef {Object} IdentifierProps
* @property {string} name - The name part of the identifier.
* @property {string} [module] - The module part of the identifier.
* @property {string} [context] - The context part of the identifier.
* @property {ErrorCode} [errorCode] - The error code part of the identifier.
*/
export interface IdentifierProps {
name: string;
module?: string;
context?: string;
errorCode?: ErrorCode;
}