File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import reservedNames from 'github-reserved-names/reserved-names.json' with { type : 'json' } ;
22import { addTests } from './collector.ts' ;
33
4- // eslint-disable-next-line @typescript-eslint/no-deprecated -- Intentionally using typed querySelector
5- const $ : typeof document . querySelector = < E extends Element = Element > ( selector : string ) => document . querySelector < E > ( selector ) ;
4+ // Selector helpers with typed-query-selector validation.
5+ // The generic parameter allows type override when selector inference isn't specific enough (e.g., attribute-only selectors)
6+ const $ = < E extends Element = Element > ( selector : string ) => document . querySelector < E > ( selector ) ;
67const exists = ( selector : string ) : boolean => Boolean ( document . querySelector ( selector ) ) ;
78
89const combinedTestOnly = [ 'combinedTestOnly' ] ; // To be used only to skip tests of combined functions, i.e. isPageA() || isPageB()
You can’t perform that action at this time.
0 commit comments