refactor: 优化错误处理逻辑
This commit is contained in:
4 files changed
+51
-27
No files matched your search
@@ -19,3 +19,16 @@ export interface AntSelectOptionItem {
|
||||
}
|
||||
|
||||
export type AntSelectOption = AntSelectOptionItem[]
|
||||
|
||||
export interface AntFieldError {
|
||||
errors: string[]
|
||||
name: string[]
|
||||
warnings: unknown[]
|
||||
}
|
||||
|
||||
export interface AntFormValidationError<T> {
|
||||
values: T
|
||||
message: string
|
||||
outOfDate: boolean
|
||||
errorFields: AntFieldError[]
|
||||
}
|
||||
Reference in new issue
Block a user