Source code of live demo for "@ts-check", an awesome feature from TypeScript for static type checking of your Vanilla JS
Switch branches/tags
Nothing to show
Clone or download
Latest commit 2ba7081 Mar 28, 2018
Permalink
Failed to load latest commit information.
assets first commit Mar 27, 2018
src first commit Mar 27, 2018
.editorconfig first commit Mar 27, 2018
.eslintrc.js first commit Mar 27, 2018
.gitignore first commit Mar 27, 2018
README.md first commit Mar 27, 2018
globals.d.ts first commit Mar 27, 2018
package.json first commit Mar 27, 2018
tsconfig.json first commit Mar 27, 2018
yarn.lock first commit Mar 27, 2018

README.md

TS-Check, a static type checker for JavaScript

This project contains the source code used for live coding with ts-check.

TypeScript 2.3 and later support a mode of type-checking and reporting errors in .js files with --checkJs.

See documentation: https://github.com/Microsoft/TypeScript/wiki/Type-Checking-JavaScript-Files

Getting started

Install deps

npm install

Run TS-Check in standalone mode

npm run tsc

npm run tsc:watch

Open VIM and play with src/*.js files

Terminal output:
tscheck jsdoc

Try TS-Check integrated to VS Code

https://code.visualstudio.com/

Open VS Code and play with src/*.js files

Typing error:
tscheck error

JSDoc comment:
tscheck jsdoc