Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 14, 2026

  • Install typed-query-selector as a dev dependency
  • Add strict mode import to global.d.ts to enable compile-time selector validation
  • Verify that existing selectors pass validation
  • Run TypeScript compiler to ensure no errors
  • Run tests to ensure everything works correctly
  • Merge main branch and resolve conflicts
Original prompt

This section details on the original issue you should resolve

<issue_title>Add typed-query-selector/strict locally to ensure selectors are valid</issue_title>
<issue_description>https://github.com/g-plane/typed-query-selector#strict-mode

This type should make TS fail if a selector is invalid. This would avoid:

cc @yakov116 </issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Copilot AI changed the title [WIP] Add typed-query-selector/strict locally for selector validation Add typed-query-selector/strict for compile-time CSS selector validation Jan 14, 2026
Copilot AI requested a review from fregante January 14, 2026 08:26
@fregante fregante marked this pull request as ready for review January 24, 2026 09:32
@fregante
Copy link
Member

@copilot update branch and resolve merge conflicts

@fregante
Copy link
Member

@copilot the $ and exists helpers also need to be updated, most likely using typeof document.querySelector and/or document.querySelector.bind(document) instead of the arrow function

Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 24, 2026

@copilot update branch and resolve merge conflicts

Branch updated and merge conflicts resolved in db9f599. The typed-query-selector dependency has been added alongside the new ts-morph and tsx dependencies from main.

@fregante fregante closed this Jan 24, 2026
@fregante fregante deleted the copilot/add-typed-query-selector-strict branch January 24, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add typed-query-selector/strict locally to ensure selectors are valid

2 participants