Skip to content

Commit 9716f7c

Browse files
committed
fix(linter/plugins): fix TS types (#14162)
Fix the types. Once I actually used them with `defineRule`, discovered they weren't right.
1 parent b19f5bc commit 9716f7c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

apps/oxlint/src-js/plugins/context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export interface Diagnostic {
99
node: {
1010
start: number;
1111
end: number;
12-
[key: string]: unknown;
1312
};
1413
fix?: FixFn;
1514
}

apps/oxlint/src-js/plugins/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type { Visitor };
1111

1212
// Hook function that runs before traversal.
1313
// If returns `false`, traversal is skipped for the rule.
14-
export type BeforeHook = () => boolean | undefined;
14+
export type BeforeHook = () => boolean | void;
1515

1616
// Hook function that runs after traversal.
1717
export type AfterHook = () => void;

0 commit comments

Comments
 (0)