Skip to content

Commit 46b2aa8

Browse files
author
Sascha Goldhofer
committed
chore: remove ts-ignore
1 parent a564366 commit 46b2aa8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/draft06/compile/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function compileSchema(
3737
rootSchema = schemaToCompile,
3838
force = false
3939
): JsonSchema {
40-
// @ts-ignore
40+
// @ts-expect-error incomplete JsonSchema type
4141
if (schemaToCompile === true || schemaToCompile === false || schemaToCompile === undefined) {
4242
return schemaToCompile;
4343
}

lib/utils/isEmpty.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export function isEmpty(v: unknown): boolean {
55
switch (type) {
66
case "string":
77
case "array":
8-
// @ts-ignore
9-
return v.length === 0;
8+
// @ts-expect-error tested as array - could use ts type guard
9+
return v?.length === 0;
1010
case "null":
1111
case "undefined":
1212
return true;

0 commit comments

Comments
 (0)