From 3c561c7c92cf3b5de3c5d96241756621d3944989 Mon Sep 17 00:00:00 2001 From: Mauricio Garcia Date: Tue, 12 Nov 2024 11:48:09 -0700 Subject: [PATCH] feat: match with table types in informed page --- index.d.ts | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/index.d.ts b/index.d.ts index 7b11f5ee..9f056063 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,6 +1,6 @@ import React from 'react'; -export type FormState = { +export type FormState> = { pristine: boolean; dirty: boolean; disabled: boolean; @@ -10,18 +10,19 @@ export type FormState = { submitting: boolean; validating: number; gathering: number; - values: Record; - maskedValues: Record; - errors: Record; - touched: Record; - modified: Record; - dirt: Record; - focused: Record; - initialValues: Record; + values: T; + maskedValues: Record; + errors: Record; + touched: Record; + modified: Record; + dirt: Record; + focused: Record; + initialValues: T; data: Record; - memory: Record; + memory: T; }; + export type InformedApi = { getFormApi: (name: string) => FormApi; };