1
0
mirror of synced 2024-11-25 06:46:02 +03:00

refactor: ValidatableData interface moved to validation/types

This commit is contained in:
Zaytsev Kirill 2020-10-15 10:46:38 +03:00
parent f3410db883
commit 35aff198ba
2 changed files with 6 additions and 4 deletions

View File

@ -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,

View File

@ -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 }