TypeScript integration
See original GitHub issueI don’t see any TypeScript definition files, nor an @types/boardgame.io
module on npm
.
- Would addition of TypeScript definition files be welcomed (this would be totally non-intrusive, and can be done incrementally, but would have to be maintained every time any JS API updates)?
- Would actually migrating all the JS source to TypeScript be welcomed (the type definitions would be future-proofed, and we could use any level of ES features throughout the code, transpiling down to whatever target necessary; but it may alienate contributors only knowledgeable of JS)?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:14
- Comments:60 (37 by maintainers)
Top Results From Across the Web
Documentation - Integrating with Build Tools - TypeScript
Integrating with Build Tools · Babel · Browserify · Grunt · Gulp · Jspm · MSBuild · NuGet · Rollup.
Read more >TypeScript Integration - jQWidgets
TypeScript compiles to clean, simple JavaScript code which runs on any browser, in Node.js, or in any JavaScript engine that supports ECMAScript 3...
Read more >How to Add TypeScript to a JavaScript Project - freeCodeCamp
Install typescript · Typescript config file · Create your first .TS file in your project · Take care of your package.json file ·...
Read more >TypeScript Programming with Visual Studio Code
To compile your TypeScript code, you can open the Integrated Terminal (Ctrl+`) and type tsc helloworld.ts . This will compile and create a...
Read more >Typescript with NodeJS: An Integration Guide | by Ross Bulat
Typescript with NodeJS: An Integration Guide. Introducing Typescript and how to integrate it into your NodeJS projects. The ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is more or less done now. The only thing that remains is to export (tsc generated) type definitions in the NPM and then users will have types for the external interfaces of boardgame.io.
Also, do you guys think that
Game
would be a more intuitive name thanGameConfig
?