Skip to content

Commit

Permalink
feat: match with table types in informed page
Browse files Browse the repository at this point in the history
  • Loading branch information
mau2099 committed Nov 12, 2024
1 parent ca8623e commit 3c561c7
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

export type FormState = {
export type FormState<T = Record<string, unknown>> = {
pristine: boolean;
dirty: boolean;
disabled: boolean;
Expand All @@ -10,18 +10,19 @@ export type FormState = {
submitting: boolean;
validating: number;
gathering: number;
values: Record<string, unknown>;
maskedValues: Record<string, unknown>;
errors: Record<string, unknown>;
touched: Record<string, unknown>;
modified: Record<string, unknown>;
dirt: Record<string, unknown>;
focused: Record<string, unknown>;
initialValues: Record<string, unknown>;
values: T;
maskedValues: Record<keyof T, string>;
errors: Record<keyof T, string>;
touched: Record<keyof T, boolean>;
modified: Record<keyof T, boolean>;
dirt: Record<keyof T, boolean>;
focused: Record<keyof T, boolean>;
initialValues: T;
data: Record<string, unknown>;
memory: Record<string, unknown>;
memory: T;
};


export type InformedApi = {
getFormApi: (name: string) => FormApi;
};
Expand Down

0 comments on commit 3c561c7

Please sign in to comment.