feat: images upload
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export type ActionResult<T = void> =
|
||||
| { success: true; data: T }
|
||||
| { success: false; error: string; fieldErrors?: Record<string, string[]> };
|
||||
|
||||
|
||||
export class AppError extends Error {
|
||||
fieldErrors?: Record<string, string[]>;
|
||||
constructor(message: string, fieldErrors?: Record<string, string[]>) {
|
||||
super(message);
|
||||
this.fieldErrors = fieldErrors;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user