0.0.6 • Published 6 years ago

ts-check-without-ts v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

TypeScript Checking Without TypeScript

CircleCI Greenkeeper badge

This repository demonstrates using @ts-check and JSDoc within a JavaScript file to catch type errors.

AKA: Using TypeScript to type check JavaScript!

Visual Example


Usage

Clone this repository. Install its dependencies. See the errors in src/index.js. Fix them. Run tests (npm test). Now you get why @ts-check and JSDoc work together to assist you in writing safer code! 💅🏾

Within the src/ and build/ finished files are added if you get confused. Otherwise fixing issues within index.js and making tests pass should take little time.


Setup

  1. Clone: git clone git@github.com:yowainwright/ts-check-without-ts.git
  2. Within jest.config.js, remove these lines:
     '/src/index.js', // @here remove this line to test changes
     '/src/__tests__/index.js', // @here remove this line to test changes
  3. Within src/index.js remove this line /* eslint-disable */
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago