Skip to content

Commit 9904a4a

Browse files
committed
fix type error in VS Code
This was passing Oxlint/tsgo check, but showing red squiggle in VS Code (probably older tsc treats it slightly differently).
1 parent 3c69dd5 commit 9904a4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/oxlint/conformance/src/rule_tester.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function addBeforeHook<T extends TestCase>(test: T): T {
105105

106106
if (Object.hasOwn(test, "before")) {
107107
// oxlint-disable-next-line typescript/unbound-method - called with `.call`
108-
const originalBefore = test.before;
108+
const originalBefore = test.before as () => void;
109109
test.before = function (this) {
110110
setCurrentTest(clonedTest);
111111
originalBefore!.call(this);

0 commit comments

Comments
 (0)