refactor: ValidatableData interface moved to validation/types
This commit is contained in:
parent
f3410db883
commit
35aff198ba
@ -3,10 +3,7 @@ import isUrl from 'is-url'
|
|||||||
import FileUpload from '../FileUpload'
|
import FileUpload from '../FileUpload'
|
||||||
import { shallowEqualObjects, regexForFormat, has } from '@/libs/utils'
|
import { shallowEqualObjects, regexForFormat, has } from '@/libs/utils'
|
||||||
import { ObjectType } from '@/common.types'
|
import { ObjectType } from '@/common.types'
|
||||||
|
import { ValidatableData } from '@/validation/types'
|
||||||
interface ValidatableData {
|
|
||||||
value: any,
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ConfirmValidatableData extends ValidatableData {
|
interface ConfirmValidatableData extends ValidatableData {
|
||||||
getFormValues: () => ObjectType,
|
getFormValues: () => ObjectType,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
interface ValidatableData {
|
||||||
|
value: any,
|
||||||
|
}
|
||||||
|
|
||||||
interface ValidationContext {
|
interface ValidationContext {
|
||||||
args: any[]
|
args: any[]
|
||||||
name: string
|
name: string
|
||||||
@ -10,5 +14,6 @@ interface ValidationError {
|
|||||||
message: string
|
message: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export { ValidatableData }
|
||||||
export { ValidationContext }
|
export { ValidationContext }
|
||||||
export { ValidationError }
|
export { ValidationError }
|
||||||
|
Loading…
Reference in New Issue
Block a user