Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

Commit a6ef05c

Browse files
authored
reduce the scroll distance
1 parent 9383537 commit a6ef05c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,26 @@ export default function App() {
7272
/>
7373

7474
{/* Type Error */}
75+
76+
{/* ❌: Type '"notExists"' is not assignable to type 'DeepPath<FormValues, "notExists">'. */}
7577
<TypedController
7678
as="input"
77-
name="notExists" // ❌: Type '"notExists"' is not assignable to type 'DeepPath<FormValues, "notExists">'.
79+
name="notExists"
7880
defaultValue=""
7981
/>
82+
83+
{/* ❌: Type '(string | number)[]' is not assignable to type 'DeepPath<FormValues, ["nested", "controlled", 0, "notExists"]>'. */}
8084
<TypedController
8185
as="input"
82-
name={["nested", "controlled", 0, "notExists"]} // ❌: Type '(string | number)[]' is not assignable to type 'DeepPath<FormValues, ["nested", "controlled", 0, "notExists"]>'.
86+
name={["nested", "controlled", 0, "notExists"]}
8387
defaultValue=""
8488
/>
89+
90+
{/* ❌: Type 'true' is not assignable to type 'string | undefined'. */}
8591
<TypedController
8692
as="input"
8793
name="error"
88-
defaultValue={true} // ❌: Type 'true' is not assignable to type 'string | undefined'.
94+
defaultValue={true}
8995
/>
9096

9197
<input type="submit" />

0 commit comments

Comments
Β (0)