Skip to content

Commit

Permalink
refactor(core): modify IFormState type (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL authored May 17, 2021
1 parent 3f78ec5 commit 57a7ea3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,9 @@ export type IVoidFieldState = Partial<
>
>

export type IFormState<T extends Record<any, any> = any> = Partial<
Pick<
Form<T>,
NonFunctionPropertyNames<OmitState<Form<{ [key: string]: any }>>>
>
export type IFormState<T extends Record<any, any> = any> = Pick<
Form<T>,
NonFunctionPropertyNames<OmitState<Form<{ [key: string]: any }>>>
>

export type IFormGraph = Record<string, IGeneralFieldState | IFormState>
Expand Down

0 comments on commit 57a7ea3

Please sign in to comment.