feat(check): turn on useUnknownInCatchVariables (#25465)

Part of #25162

Closes #11826
This commit is contained in:
David Sherret 2024-09-05 15:22:31 +02:00 committed by GitHub
parent b54347c448
commit 15fce5b290
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 18 additions and 16 deletions

View file

@ -74,7 +74,7 @@ Deno.test("Built-in Node modules have `node:` prefix", () => {
createRequire();
} catch (e) {
thrown = true;
const stackLines = e.stack.split("\n");
const stackLines = (e as Error).stack!.split("\n");
// Assert that built-in node modules have `node:<mod_name>` specifiers.
assert(stackLines.some((line: string) => line.includes("(node:module:")));
}