@codegateinc/react-form-builder-v2
Advanced tools
Comparing version 1.2.9 to 1.2.10
@@ -42,3 +42,3 @@ import { GateField } from './src/main/types' | ||
type UseFormReturn<T> = { | ||
form: Record<keyof T, Field<any>>, | ||
form: {[K in keyof T]: T[K]}, | ||
hasError: boolean, | ||
@@ -62,3 +62,3 @@ isFilled: boolean, | ||
declare function useForm<T>( | ||
declare function useForm<T extends Record<PropertyKey, GateField<any>>>( | ||
formFields: Record<keyof T, Field<any>>, | ||
@@ -65,0 +65,0 @@ callbacks: FormGateCallbacks<T> |
@@ -6,3 +6,3 @@ { | ||
"typings": "index.d.ts", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"main": "dist/index.js", | ||
@@ -9,0 +9,0 @@ "scripts": { |
245436