https://github.com/mvsde/node-type-stripping
Examples for experimental type stripping in Node.js 22.6.0
https://github.com/mvsde/node-type-stripping
Last synced: 3 months ago
JSON representation
Examples for experimental type stripping in Node.js 22.6.0
- Host: GitHub
- URL: https://github.com/mvsde/node-type-stripping
- Owner: mvsde
- Created: 2024-08-08T20:08:56.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T20:17:19.000Z (10 months ago)
- Last Synced: 2025-02-21T08:48:22.768Z (3 months ago)
- Language: JavaScript
- Homepage: https://nodejs.org/docs/latest/api/typescript.html#type-stripping
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js Type Stripping
Examples for [experimental type stripping in Node.js 22.6.0](https://nodejs.org/docs/latest/api/typescript.html#type-stripping).
This repository contains the same JavaScript code in three versions:
1. [Vanilla JS](1-vanilla)
2. [JSDoc type annotations](2-jsdoc)
3. [TypeScript with strippable annotations only](3-typescript)Run the different versions with:
```sh
node --run vanilla
node --run jsdoc
node --run typescript
```