Skip to content

Commit cdeb53c

Browse files
committed
chore: add "noUncheckedIndexedAccess": true
1 parent 39851a3 commit cdeb53c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

__tests__/toObject.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe("toObject", () => {
8484
b: "B",
8585
});
8686

87-
form.a.$forms[1].text.$value = "world";
87+
form.a.$forms[1]!.text.$value = "world";
8888
expect(toObject(form)).toEqual({
8989
a: [{ text: "hello" }, { text: "world" }],
9090
b: "B",

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"esModuleInterop": true,
88
"outDir": "dist",
99
"strict": true,
10+
"noUncheckedIndexedAccess": true,
1011
"types": ["vitest/globals"],
1112
"declaration": true
1213
},

0 commit comments

Comments
 (0)