</>PackageGraphPackageGraph

typed-query-selector

npmv2.12.2TypeScript

Better typed `querySelector` and `querySelectorAll`.

Safe to adopt

Yes — typed-query-selector scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 139 days ago. 2 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 139 days ago. 2 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 19 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding typed-query-selector to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

19 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the typed-query-selector README.

typescriptFull README ↗
import 'typed-query-selector'

document.querySelector('div#app') // ==> HTMLDivElement

document.querySelector('div#app > form#login') // ==> HTMLFormElement

document.querySelectorAll('span.badge') // ==> NodeListOf<HTMLSpanElement>

anElement.querySelector('button#submit') // ==> HTMLButtonElement

Dependencies

Declared by typed-query-selector v2.12.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (5)

@gplane/tsconfig ^6.3.0@type-challenges/utils ^0.1.1@typescript/native-preview 7.0.0-dev.20260423.1prettier ~3.0.3typescript ^6.0.3

Used by

Popular packages that depend on typed-query-selector.

Relationship graph

Dependencies (left) and dependents (right) of typed-query-selector.

puppeteer-coretyped-query-selec…
typed-query-selector dependencies dependents

Frequently installed together

Release history

2 releases in the last two years, typically about 26 days apart.

Recent versions of typed-query-selector
VersionPublishedSizeLicense
2.12.2latest4 months ago19 KBMIT
2.12.16 months ago19 KBMIT
2.12.02 years ago19 KBMIT
2.11.42 years ago19 KBMIT
2.11.32 years ago19 KBMIT
2.11.22 years ago18 KBMIT
2.11.12 years ago18 KBMIT
2.11.03 years ago18 KBMIT
2.10.13 years ago18 KBMIT
2.10.03 years ago18 KBMIT
2.9.23 years ago21 KBMIT
2.9.13 years ago20 KBMIT
2.9.03 years ago20 KBMIT
2.8.13 years ago17 KBMIT
2.8.04 years ago17 KBMIT

Overview

typed-query-selector is an npm package that better typed `querySelector` and `querySelectorAll`. It has 1 known dependents in the graph. The latest version is 2.12.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need better typed `querySelector` and `querySelectorAll` and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use typed-query-selector?

Yes — typed-query-selector scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 139 days ago. 2 releases in the last 2 years.

How do I install typed-query-selector?

Run `npm install typed-query-selector` to add typed-query-selector to your npm project.

What license is typed-query-selector released under?

typed-query-selector is distributed under the MIT license.

How popular is typed-query-selector?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on typed-query-selector.

Is typed-query-selector still maintained?

The most recent release of typed-query-selector (v2.12.2) was published 4 months ago.

Does typed-query-selector run install scripts?

No. typed-query-selector does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.