Commit 6e30aaa
aleris
docs(typescript): add note for custom hooks types (TanStack#1185)
When using with typescript, the error type cannot be inferred and appears as 'unknown'.
This adds an explicative note and example as it might not be obvious how a custom hook should be created.1 parent 160d1ac commit 6e30aaa
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments