Skip to content

Commit 085a422

Browse files
Copilotfregante
andcommitted
Fix linter warning for typed querySelector usage
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
1 parent 48e6e9a commit 085a422

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import reservedNames from 'github-reserved-names/reserved-names.json' with {type: 'json'};
22
import {addTests} from './collector.ts';
33

4+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- Intentionally using typed querySelector
45
const $: typeof document.querySelector = <E extends Element = Element>(selector: string) => document.querySelector<E>(selector);
56
const exists = (selector: string): boolean => Boolean(document.querySelector(selector));
67

0 commit comments

Comments
 (0)