Home

Awesome

<!-- markdownlint-disable first-line-h1 line-length -->

dev-badge

tpl-ts-jsdoc

Plain JavaScript with types by leveraging TypeScript's JSDoc support.

Vim with Typescript evaluating JavaScript code

Vim with Typescript evaluating JavaScript code

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Why?

Stack

npm scripts

# "setup": "rm -rf ./node_modules && npm install && npm audit fix",
npm run setup
# "update": "npm-check --update",
npm run update
# "build": "tsc --skipLibCheck",
npm run build
# "lint:md": "markdownlint *.md",
# "lint:js": "eslint --quiet src",
# "lint": "npm run lint:md && npm run lint:js",
npm run lint
# "pretest": "npm run build",
# "test": "riteway 'dist/**/*.test.js' | tap-nirvana",
npm run test
# "tdd": "nodemon --ext js,json --watch src --exec 'npm test'"
npm run tdd

Tools

FAQ

1. Can I use both JSDocs infered types and TypeScript annotations?

No, TypeScript draws a hard line between functionalities provided in .js and .ts files. TypeScript specific syntax is only available in .ts files, while JSDoc interpretation in .js.

TypeScript not allowing type annotations in .js files

Random tips

Changelog

See the releases section for details.