From ee3bb1cd6e5eb5b1334c0c0b729e58b3d84c1d1b Mon Sep 17 00:00:00 2001 From: Khafid Prayoga Date: Fri, 29 Aug 2025 11:02:31 +0700 Subject: [PATCH] refactor(error): move error types to centralized location Consolidate XError, XErrors, and FormErrors types into a single file for better maintainability and consistency across the codebase. --- app/components/app/divison/entry-form.vue | 2 +- app/composables/useFormErrors.ts | 10 +-------- app/composables/useXfetch.ts | 10 +-------- app/types/error.ts | 27 +++++++++++++++++++++++ 4 files changed, 30 insertions(+), 19 deletions(-) create mode 100644 app/types/error.ts diff --git a/app/components/app/divison/entry-form.vue b/app/components/app/divison/entry-form.vue index 4057cc53..348f440e 100644 --- a/app/components/app/divison/entry-form.vue +++ b/app/components/app/divison/entry-form.vue @@ -1,5 +1,5 @@