danschultz / js-definition-files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaScript in TypeScript Demo

This demo's using plain JS in TS and emitting a definition file that can be used in other TS projects. JS is documented using JSDoc which TypeScript can parse to provide autocompletion and static type assistance.

Usage

  • Run yarn install
  • Run yarn run build
  • Output should be in ./dist

Issues

Currently blocked on microsoft/TypeScript#7546, which prevents mixing --declaration and --allowJs.

About


Languages

Language:JavaScript 79.5%Language:TypeScript 20.5%