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.
This commit is contained in:
@@ -1,13 +1,5 @@
|
||||
import type { ZodError } from 'zod'
|
||||
|
||||
export interface XError {
|
||||
message: string
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
export interface FormErrors {
|
||||
[field: string]: XError
|
||||
}
|
||||
import type { FormErrors } from '~/types/error'
|
||||
|
||||
/**
|
||||
* Composable untuk menangani form validation errors seperti Laravel
|
||||
|
||||
Reference in New Issue
Block a user