fix(error): add trace to browser in dev mode

also make AppError a bit easier to use
This commit is contained in:
zyachel
2025-06-01 13:03:08 +00:00
committed by ngn
parent bde980536d
commit ac60bda3bd
7 changed files with 83 additions and 35 deletions

View File

@ -1,3 +1,3 @@
import { AppError as AppErrorClass } from 'src/utils/helpers';
export type AppError = Omit<InstanceType<typeof AppErrorClass>, 'name'>;
export type AppError = Pick<InstanceType<typeof AppErrorClass>, 'message' | 'statusCode' | 'stack'>;