Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicopennec/tscheck-demo
Source code of live demo for "@ts-check", an awesome feature from TypeScript for static type checking of your Vanilla JS
https://github.com/nicopennec/tscheck-demo
precommit ts-check typechecking typescript vanilla-js
Last synced: 18 days ago
JSON representation
Source code of live demo for "@ts-check", an awesome feature from TypeScript for static type checking of your Vanilla JS
- Host: GitHub
- URL: https://github.com/nicopennec/tscheck-demo
- Owner: NicoPennec
- Created: 2018-03-27T21:03:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-05T18:44:39.000Z (about 2 years ago)
- Last Synced: 2024-10-11T15:46:10.360Z (about 1 month ago)
- Topics: precommit, ts-check, typechecking, typescript, vanilla-js
- Language: JavaScript
- Homepage: https://docs.google.com/presentation/d/e/2PACX-1vR_cnC9AoX-hrGS9jyCHAmn4W8Cds2iL7NUGq7y2fTAuWQS4CiNsV9GYH7S1EsezkniSxcKF_9uZeQF/pub
- Size: 97.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
npm install
```### Run TS-Check in standalone mode
```bash
npm run tscnpm run tsc:watch
```Open VIM and play with `src/*.js` files
Terminal output:
![tscheck jsdoc](assets/screenshoot-jsdoc.png)### Try TS-Check integrated to VS Code
https://code.visualstudio.com/
Open VS Code and play with `src/*.js` files
Typing error:
![tscheck error](assets/screenshoot-error.png)JSDoc comment:
![tscheck jsdoc](assets/screenshoot-jsdoc.png)