question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript integration

See original GitHub issue

I don’t see any TypeScript definition files, nor an @types/boardgame.io module on npm.

  1. 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)?
  2. 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:closed
  • Created 5 years ago
  • Reactions:14
  • Comments:60 (37 by maintainers)

github_iconTop GitHub Comments

5reactions
nicolodaviscommented, Mar 24, 2020

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.

2reactions
nicolodaviscommented, Apr 6, 2020

Also, do you guys think that Game would be a more intuitive name than GameConfig?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found