@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
7 lines • 362 B
TypeScript
/**
* Creates a custom error class with a specified name.
* @param {string} name - The name of the custom error.
* @returns {new (message?: string, options?: ErrorOptions) => Error} The custom error class.
*/
export default function customError(name: string): new (message?: string, options?: ErrorOptions) => Error;
//# sourceMappingURL=customError.d.ts.map