We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77d51f3 commit 7fab324Copy full SHA for 7fab324
src/index.d.test.ts
@@ -12,7 +12,7 @@ const form = createForm({
12
})
13
14
// Get form.mutators (default as object) and cast to Mutators
15
-const mutators: Mutators = ((form.mutators || {}) as any) as Mutators
+const mutators: Mutators = (form.mutators as any) as Mutators
16
17
mutators.insert('customers', 0, { firstName: '', lastName: '' })
18
mutators.move('customers', 0, 1)
0 commit comments