@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.
14 lines • 747 B
TypeScript
import { IdentifierProps } from "./types";
/**
* Creates an identifier string from the given properties.
*
* @param {IdentifierProps} props - The properties used to create the identifier.
* @param {string} props.name - The name part of the identifier.
* @param {string} [props.module] - The module part of the identifier. Defaults to DEFAULT_MODULE if not provided.
* @param {string} [props.context] - The context part of the identifier. Defaults to DEFAULT_CONTEXT if not provided.
* @param {ErrorCode} [props.errorCode] - The error code part of the identifier.
*
* @returns {string} The constructed identifier.
*/
export declare const createIdentifier: (props: IdentifierProps) => string;
//# sourceMappingURL=createIdentifier.d.ts.map