MCPcopy Index your code
hub / github.com/TypeStrong/ts-node / isRecoverable

Function isRecoverable

src/repl.ts:755–763  ·  view source on GitHub ↗

* Check if a function can recover gracefully.

(error: TSError)

Source from the content-addressed store, hash-verified

753 * Check if a function can recover gracefully.
754 */
755function isRecoverable(error: TSError) {
756 return error.diagnosticCodes.every((code) => {
757 const deps = RECOVERY_CODES.get(code);
758 return (
759 deps === null ||
760 (deps && error.diagnosticCodes.some((code) => deps.has(code)))
761 );
762 });
763}
764
765/**
766 * @internal

Callers 1

handleErrorFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…