Describe the bug
I'm getting this error:
Argument of type 'TObject<{ name: TString; score: TString; externalId: any; }>' is not assignable to parameter of type 'TObject<TProperties> | TypeCheck<TObject<TProperties>>'.ts(2345)
Argument of type 'TObject<{ name: TString; score: TString; externalId: any; }>' is not assignable to parameter of type 'TObject<TProperties> | TypeCheck<TObject<TProperties>>'.
Type 'TObject<{ name: TString; score: TString; externalId: any; }>' is missing the following properties from type 'TypeCheck<TObject<TProperties>>': schema, references, checkFunc, code, and 3 more.ts(2345)
Here is the TypeBox schema:
export const UPDATE_APPLICATION_INPUT_SCHEMA = Type.Object({
name: Type.String({ minLength: 1 }),
score: Type.String(),
externalId: Type.String().Nullable(),
})
const form = useForm<UpdateApplicationInput>({
resolver: typeboxResolver(UPDATE_APPLICATION_INPUT_SCHEMA),
defaultValues: {
name: application.name,
externalId: application.externalId ?? null,
},
})
Why is this happening?
Expected behavior
No error occurs.
Additional context
TypeBox version: 0.32.35
@hookform/resolvers: 3.9.0
Describe the bug
I'm getting this error:
Here is the TypeBox schema:
Why is this happening?
Expected behavior
No error occurs.
Additional context
TypeBox version: 0.32.35
@hookform/resolvers: 3.9.0