refacto: error and types
This commit is contained in:
7
src/types/global.d.ts
vendored
Normal file
7
src/types/global.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ErrorCode } from "@/constants/errorCodes";
|
||||
|
||||
export interface AppErrorType extends Error {
|
||||
code: ErrorCode;
|
||||
message: string;
|
||||
name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user