1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
Oinktube/node_modules/err-code/dist/index.d.ts
2023-02-17 15:04:26 -03:00

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;