10 lines
248 B
TypeScript
10 lines
248 B
TypeScript
|
/**
|
||
|
* Creates a new error object with the given type and message.
|
||
|
*
|
||
|
* @param type - The error type.
|
||
|
* @param message - The error message.
|
||
|
*
|
||
|
* @returns The error object.
|
||
|
*/
|
||
|
export declare function error(type: string, message: string): Error;
|