Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-form/src/createFormHook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const formContext = createContext<AnyFormApi>(null as never)
* Then `T` becomes `undefined`.
*
* Here, we are checking if the passed type `T` extends `DefaultT` and **only**
* `DefaultT`, as if that's the case we assume that inferencing has not occured.
* `DefaultT`, as if that's the case we assume that inferencing has not occurred.
*/
type UnwrapOrAny<T> = [unknown] extends [T] ? any : T
type UnwrapDefaultOrAny<DefaultT, T> = [DefaultT] extends [T]
Expand Down
2 changes: 1 addition & 1 deletion packages/solid-form/src/createFormHook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import type { SolidFormExtendedApi } from './createForm'
* Then `T` becomes `undefined`.
*
* Here, we are checking if the passed type `T` extends `DefaultT` and **only**
* `DefaultT`, as if that's the case we assume that inferencing has not occured.
* `DefaultT`, as if that's the case we assume that inferencing has not occurred.
*/
type UnwrapOrAny<T> = [unknown] extends [T] ? any : T
type UnwrapDefaultOrAny<DefaultT, T> = [DefaultT] extends [T]
Expand Down