Skip to content

Commit 2017b3a

Browse files
authored
Ignore TypeScript error 2355 in REPL (#645)
1 parent 743e80f commit 2017b3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ const RECOVERY_CODES: Set<number> = new Set([
387387
1109, // "Expression expected."
388388
1126, // "Unexpected end of text."
389389
1160, // "Unterminated template literal."
390-
1161 // "Unterminated regular expression literal."
390+
1161, // "Unterminated regular expression literal."
391+
2355 // "A function whose declared type is neither 'void' nor 'any' must return a value."
391392
])
392393

393394
/**

0 commit comments

Comments
 (0)