[fixed] - stable

This commit is contained in:
Swapnil Bendal
2024-12-17 21:29:26 +05:30
parent bf915d8e91
commit 7de26a3c1c
4 changed files with 5 additions and 5 deletions

View File

@@ -3,14 +3,14 @@ class ApiError<T = unknown> extends Error {
data: T | null;
message: string;
success: boolean;
errors: Array<unknown>;
errors: Array<Error>;
isOperational: boolean;
stack?: string;
constructor(
statusCode: number,
message: string = 'Something went wrong',
errors: Array<unknown> = [],
errors: Array<Error> = [],
isOperational: boolean = true,
stack?: string
) {