converted to ts

This commit is contained in:
Miodec 2022-03-04 00:29:06 +01:00
parent 5b0f170b10
commit d4b7ab90ca

View file

@ -1,7 +1,10 @@
import * as uuid from "uuid";
class MonkeyError extends Error {
constructor(status, message, stack = null, uid = null) {
status: number;
errorId: string;
uid: string;
constructor(status: number, message: string, stack = null, uid = null) {
super();
this.status = status ?? 500;
this.errorId = uuid.v4();