programming language, superset of JavaScript that compiles to JavaScript

TypeScript (TS) is a high-level programming language that adds static typing with optional type annotations to JavaScript. It is designed for developing large applications. It transpiles to JavaScript. It is developed by … Wikipedia
Factsheet
Family ECMAScript
Designed by Microsoft,
Anders Hejlsberg,
Luke Hoban
Factsheet
Family ECMAScript
Designed by Microsoft,
Anders Hejlsberg,
Luke Hoban
🌐
npm
npmjs.com › package › typescript
typescript - npm
September 30, 2025 - TypeScript is a language for application scale JavaScript development. Latest version: 5.9.3, last published: 2 months ago. Start using typescript in your project by running `npm i typescript`. There are 61788 other projects in the npm registry ...
      » npm install typescript
    
Published   Sep 30, 2025
Version   5.9.3
Author   Microsoft Corp.
🌐
TypeScript
typescriptlang.org › download
TypeScript: How to set up TypeScript
TypeScript is available as a package on the npm registry available as "typescript".
Discussions

node.js - How to install and run Typescript locally in npm? - Stack Overflow
It's also a dev dependency (not ... be npm install --dev-save 2016-06-25T15:53:04.393Z+00:00 ... I tried different ways to cause the error you have provided in your question or something like that, but I did not succeed 2016-06-25T16:15:52.767Z+00:00 ... This solution seem to work for now. However note that you are not allows to use files and exclude at the same time according to: github.com/TypeStrong/atom-typescript/blob/mast... More on stackoverflow.com
🌐 stackoverflow.com
How to build an NPM Package that's both Typescript and Javascript friendly?
tsdx: https://github.com/formium/tsdx More on reddit.com
🌐 r/typescript
4
38
December 3, 2020
Using TypeScript to Create Modern npm Packages
As I was refreshing my skills around creating npm packages I felt using TypeScript to compile for both CommonJS and ECMAScript module formats would be the simplest way. A lot of the information out there around this topic relies on adding even more dependencies/technologies and I was trying to minimize the need for that. What do you all think about this approach? One small friction point I found was trying to get TypeScript to export two different file extensions for each module format (one with .js and the other with .mjs). However I was unable to find a way to do that directly with TypeScript so instead used the command `mv lib/esm/index.js lib/esm/index.mjs` . Is there another, better, way to do this? More on reddit.com
🌐 r/typescript
21
80
September 13, 2022
How can I override a type exported by an NPM package?
Worst-case: create your own local file that exports that package, but overrides with your own type and import from that More on reddit.com
🌐 r/typescript
8
19
February 4, 2022
🌐
npm
npmjs.com › search
typescript - npm search
Standalone TypeScript project service wrapper for linting.
🌐
Medium
pauloe-me.medium.com › typescript-npm-package-publishing-a-beginners-guide-40b95908e69c
TypeScript NPM Package Publishing: A Beginner’s Guide
June 12, 2023 - It allows developers to easily install, manage, and share reusable JavaScript code packages, also known as modules or packages. TypeScript is a programming language developed by Microsoft.
🌐
Microsoft Learn
learn.microsoft.com › en-us › visualstudio › javascript › compile-typescript-code-npm
Compile and build TypeScript code using npm - Visual Studio (Windows) | Microsoft Learn
June 24, 2025 - Use the TypeScript npm package to add TypeScript support to projects based on the JavaScript Project System (JSPS), or .esproj. Starting in Visual Studio 2019, it's recommended that you use the npm package instead of the TypeScript SDK.
Find elsewhere
🌐
npm
npmjs.com › ts-node
ts-node
It JIT transforms TypeScript into JavaScript, enabling you to directly execute TypeScript on Node.js without precompiling. This is accomplished by hooking node's module loading APIs, enabling it to be used seamlessly alongside other Node.js tools and libraries. ... # Locally in your project. npm install -D typescript npm install -D ts-node # Or globally with TypeScript.
      » npm install ts-node
    
Published   Dec 08, 2023
Version   10.9.2
Author   Blake Embrey
🌐
Graphite
graphite.com › guides › npm-typescript
Using npm with TypeScript
This guide will cover everything from installing TypeScript using npm to creating your own npm package in TypeScript.
🌐
Reddit
reddit.com › r/typescript › how to build an npm package that's both typescript and javascript friendly?
How to build an NPM Package that's both Typescript and ...
December 3, 2020 -

I'm having a devil of a time figuring this out. In my ${DAY_JOB}, I'm currently writing a private NPM module that will be distributed to other teams; the module contains a fairly large decision tree and a class that drives internal business logic; other teams will use this class to guide several kinds of customer interaction.

Some of our teams use Typescript, but others are still using JS. I've googled my brains out but I can't seem to find a good example of an NPM package.json that demonstrates support for the following:

  • the module is made a dependency using the `"company-sdk": "file:vendor/company-sdk-0.0.0.tgz" format.

  • the module has separate folders for the typescript source code and the built javascript.

  • Importing the module works regardless of the consumer's choice to work in either language.

It would be perfectly acceptable if the .d.ts files were in the Javascript folder, but for some reason I can't seem to make that work. Are there any good examples, on Github for example, of small (and without Webpack or esoteric Babel settings) projects that accomplish this?

🌐
iO Flood
ioflood.com › blog › npm-typescript
NPM TypeScript Package | Quick Setup Guide
May 2, 2024 - Running npm run build will compile your hello.ts file to JavaScript, ready to be executed in any JavaScript environment. This process illustrates the seamless integration between TypeScript and npm, highlighting the ease with which you can start building robust applications. By mastering these initial steps, you’ve laid the foundation for your TypeScript development with npm.
🌐
Medium
medium.com › @the_nick_morgan › creating-an-npm-package-with-typescript-c38b97a793cf
Creating an npm package with TypeScript | by Nick Morgan | Medium
May 9, 2024 - In this guide, we’ll walk through creating a simple npm package written in TypeScript that adds two numbers.
🌐
Execute Program
executeprogram.com › courses › typescript-basics › articles › how-to-install-typescript
How to install TypeScript
Learn programming languages like TypeScript, Python, JavaScript, SQL, and regular expressions. Interactive with real code examples.
🌐
npm
npmjs.com › package › typescript-is
typescript-is - npm
July 17, 2023 - TypeScript transformer that generates run-time type-checks.. Latest version: 0.20.0, last published: 2 years ago. Start using typescript-is in your project by running `npm i typescript-is`. There are 40 other projects in the npm registry using ...
      » npm install typescript-is
    
Published   Jul 17, 2023
Version   0.20.0
Author   Wouter van Heeswijk
🌐
daily.dev
daily.dev › home › blog › get into tech › npm tsc and typescript projects
Npm tsc and TypeScript Projects
February 4, 2025 - TypeScript transforms your code into JavaScript that browsers can understand. npm tsc is a tool that compiles TypeScript (.ts) files into JavaScript (.js) files.
🌐
Reddit
reddit.com › r/typescript › using typescript to create modern npm packages
r/typescript on Reddit: Using TypeScript to Create Modern npm Packages
September 13, 2022 - TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ... Русский简体中文Tiếng Việt繁體中文Español (Latinoamérica)RomânăPortuguês (Portugal)DeutschΕλληνικάMagyarNorsk (Bokmål)Nederl...
🌐
Intuz
intuz.com › home › blog › in-depth guide on creating and publishing npm with typescript
In-depth guide on creating and publishing NPM with typescript
July 10, 2023 - The name you choose has to be in lowercase and pascal-case. How is "my-awesome-coder" sound to you? Install your TypeScript as a devDependency which is installed only when you run the npm install and not when the user installs the package.
🌐
npm
npmjs.com › package › typescript-eslint
typescript-eslint - npm
1 week ago - Tooling which enables you to use TypeScript with ESLint. Latest version: 8.48.1, last published: 6 days ago. Start using typescript-eslint in your project by running `npm i typescript-eslint`. There are 2522 other projects in the npm registry ...
      » npm install typescript-eslint
    
🌐
React
react.dev › learn › typescript
Using TypeScript – React
Follow the framework specific guide for installation: Next.js · Remix · Gatsby · Expo · To install the latest version of React’s type definitions: Terminal · Copy · npm install --save-dev @types/react @types/react-dom ·
🌐
GitHub
github.com › microsoft › TypeScript
GitHub - microsoft/TypeScript: TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
For the latest stable version: npm install -D typescript · For our nightly builds: npm install -D typescript@next · There are many ways to contribute to TypeScript. Submit bugs and help us verify fixes as they are checked in.
Starred by 107K users
Forked by 13.2K users
Languages   TypeScript
🌐
npm
npmjs.com › package › @typescript › native-preview
@typescript/native-preview - npm
3 weeks ago - Preview CLI of the native TypeScript compiler port. Latest version: 7.0.0-dev.20251208.1, last published: 12 hours ago. Start using @typescript/native-preview in your project by running `npm i @typescript/native-preview`. There are 16 other projects in the npm registry using @typescript/na...
      » npm install @typescript/native-preview
    
Published   Dec 08, 2025
Version   7.0.0-dev.20251208.1
Author   Microsoft Corp.