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 { shallowEqualObjects, regexForFormat, has } from '@/libs/utils'
|
||||
import { ObjectType } from '@/common.types'
|
||||
|
||||
interface ValidatableData {
|
||||
value: any,
|
||||
}
|
||||
import { ValidatableData } from '@/validation/types'
|
||||
|
||||
interface ConfirmValidatableData extends ValidatableData {
|
||||
getFormValues: () => ObjectType,
|
||||
|
@ -1,3 +1,7 @@
|
||||
interface ValidatableData {
|
||||
value: any,
|
||||
}
|
||||
|
||||
interface ValidationContext {
|
||||
args: any[]
|
||||
name: string
|
||||
@ -10,5 +14,6 @@ interface ValidationError {
|
||||
message: string
|
||||
}
|
||||
|
||||
export { ValidatableData }
|
||||
export { ValidationContext }
|
||||
export { ValidationError }
|
||||
|
Loading…
Reference in New Issue
Block a user