An open API service indexing awesome lists of open source software.

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

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
```