Skip to content

Commit d99b460

Browse files
committed
Ts error fix
1 parent 1851330 commit d99b460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type-system/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ createType<TMaybeNull>(
100100
SetErrorFunction((error) => {
101101
switch (error.schema[Kind]) {
102102
case 'MaybeNull':
103-
return `Expected '${error.schema.type ?? error.schema[WrappedKind]}' or 'null'`
103+
return `Expected '${error.schema.type ?? (error.schema as TMaybeNull)[WrappedKind]}' or 'null'`
104104
default:
105105
return DefaultErrorFunction(error)
106106
}

0 commit comments

Comments
 (0)