-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Forms): enhance typing and add docs on how to deal with TypeScri…
…pt types (#4343) The main change is that we go from: ```tsx type JsonObject = any ``` to ```tsx type JsonObject = Record<string | number, unknown> | Array<unknown> ``` and enhance the TypeScript support docs for the "Getting Started" section the `Form.Handler` and `Form.Isolation` docs. To disable types you can do so by: ```tsx <Form.Handler<any>> ... </Form.Handler> ``` or ```tsx const { data } = Form.useData<any>() ```
- Loading branch information
1 parent
4a0fea1
commit 10b199b
Showing
23 changed files
with
309 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.