Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Inject.d.tsNew to Visual Studio Code? Get it now.
Inject.d.ts

Inject.d.ts

KristanLaimon

| (0) | Free
Zero-config TypeScript IntelliSense for projects and loose scripts without per-project type installs.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Inject.d.ts

Inject.d.ts provides global TypeScript declaration packages directly, eliminating the need to install them separately in each workspace/project.

Available on:

  • Open VSX
  • Visual Studio Marketplace

Usage

  1. Install and enable the extension.
  2. Open any TypeScript or JavaScript file.
  3. Use the Inject.d.ts activity bar icon to inspect bundled and downloaded declaration packages.
  4. Run Download Types Package from the view title or command palette to add a package such as @types/lodash, @types/express, or @types/bun@latest, or anything you want to load globally!
  5. Expand a package item to read its .d.ts files, use Change Types Package Version to install a different version, or Delete Types Package to remove downloaded packages and hide bundled packages.
Inject.d.ts demo
_Demo: Installing @types/bun for script usage without needing to `npm install` it and no /node_modules_

Why?

Sometimes I wanted to do small scripts using Typescript but intelissense stops working due to the lack of any "@type/#" installed with npm (or you preffered package manaer), being annoying when doing vanilla scripts. So I had to do my scripts in .js, vscode for some reason provides node.js intelissense inside .js.

Do we need to npm install typescript types ".d.ts" everytime we wanna use Typescript for simple scripts!?? Not anymore.

🟢 Important: This is for only vscode-compatible editor's intelissense, doesn't validate in run-time...

Features

  • Bundles @types/node by default.
  • Injects declaration files through a TypeScript server plugin, so IntelliSense can see them in projects and loose files.
  • Adds an activity bar view named Inject.d.ts with a Global Types package list.
  • Downloads additional npm type packages into extension global storage.
  • Supports create, read, version changes, and delete for downloaded and bundled packages.
  • Does not modify the current workspace or run npm install / pnpm install inside your projects.

Notes

  • Downloading packages requires network access to the npm registry.
  • This is for editor IntelliSense and type checking inside VS Code-compatible editors. It does not change runtime behavior.
  • Project-local tsconfig.json settings can still affect how TypeScript reports conflicts between DOM, Node, Bun, and other global declarations.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft