1.1.0 • Published 7 years ago
js2ts v1.1.0
js2ts
Converts a JavaScript project into a TypeScript project
Installation
npm i -g js2ts
Usage
- Move all your js files to a
src/
folder in the root of your package (tests can stay in thetest/
folder). - Check that each js file's first line is
'use strict'
. - Update your package if it doesn't work in strict mode.
- Run
js2ts
in the root of the package you wanna convert.