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:
No files matched your search
@@ -1,13 +1,5 @@
|
||||
import type { Pinia } from 'pinia'
|
||||
|
||||
export interface XError {
|
||||
code: string
|
||||
message: string
|
||||
expectedVal?: string
|
||||
givenVal?: string
|
||||
}
|
||||
|
||||
export type XErrors = Record<string, XError>
|
||||
import type { XError, XErrors } from '~/types/error'
|
||||
|
||||
export interface XfetchResult {
|
||||
success: boolean
|
||||
|
||||
Reference in New Issue
Block a user