build(deps): update latest

BREAKING CHANGE: peerDependencies: `react@>=18.2.0`
This commit is contained in:
Divlo
2023-04-02 21:52:34 +02:00
parent 85eb53d60c
commit 69f12002c7
15 changed files with 3778 additions and 3538 deletions

View File

@ -1,11 +1,11 @@
import type { TObject } from '@sinclair/typebox'
import type { ObjectAny } from './types'
import type { Schema } from '../hooks/useForm'
export const handleCheckboxBoolean = (
object: ObjectAny,
validateSchemaObject: TObject<ObjectAny>
): ObjectAny => {
object: Schema,
validateSchemaObject: TObject<Schema>
): Schema => {
const booleanProperties: string[] = []
for (const property in validateSchemaObject.properties) {
const rule = validateSchemaObject.properties[property]

View File

@ -1,4 +1,6 @@
export const handleOptionalEmptyStringToNull = <K>(
import type { Schema } from '../hooks/useForm'
export const handleOptionalEmptyStringToNull = <K extends Schema>(
object: K,
required: string[] = []
): K => {

View File

@ -1,3 +0,0 @@
export interface ObjectAny {
[key: string]: any
}