Skip to content

Commit cfc864b

Browse files
committed
Enable noUncheckedIndexedAccess
1 parent 3024fc6 commit cfc864b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

deno.jsonc

+3
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"tasks": {
44
"lpm": "deno run -A ./packages/cli/bin.ts",
55
"test": "deno test -A"
6+
},
7+
"compilerOptions": {
8+
"noUncheckedIndexedAccess": true
69
}
710
}

packages/core/src/schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class Schema {
7676
!ref.startsWith("#") &&
7777
ref.split("#")[0] !== this.nsid.toString(),
7878
)
79-
.map((ref) => ref.split("#")[0]),
79+
.map((ref) => ref.split("#")[0]!),
8080
),
8181
];
8282

0 commit comments

Comments
 (0)