feat: images upload

This commit is contained in:
Ivan Rezchikov
2026-07-04 15:45:05 +03:00
parent 2eb0de5357
commit e192717466
38 changed files with 1334 additions and 615 deletions
+12
View File
@@ -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;
}
}