mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
16 lines
486 B
TypeScript
16 lines
486 B
TypeScript
export = createError;
|
|
/**
|
|
*
|
|
* @param {any} err - An Error
|
|
* @param {string|Extensions} code - A string code or props to set on the error
|
|
* @param {Extensions} [props] - Props to set on the error
|
|
* @returns {Error & Extensions}
|
|
*/
|
|
declare function createError(err: any, code: string | Extensions, props?: Extensions | undefined): Error & Extensions;
|
|
declare namespace createError {
|
|
export { Extensions, Err };
|
|
}
|
|
type Extensions = {
|
|
[key: string]: any;
|
|
};
|
|
type Err = Error;
|