open-dis / open-dis-javascript

Javascript implementation of the IEEE-1278.1 Distributed Interactive Simulation (DIS) application protocol v6 and v7
BSD 2-Clause "Simplified" License
11 stars 12 forks source link

Integrating ES6/TypeScript #26

Open cplpearce opened 12 months ago

cplpearce commented 12 months ago

Hello!

Our team is looking at integrating this library into a TypeScript frontend project.

We would like to begin building out a TypeScript compliant branch and just wanted to check if any of the maintainers have any comments, questions or suggestions before we begin.

We would like to keep it OS, hosted in this repo if possible!

Thanks!

B1Dobbs commented 2 weeks ago

Hi @cplpearce, how far along are you on supporting TypeScript right now?

Our team has also been using this project in more modern front-end application and we have a current implementation of generating types from the JSDoc annotations using tsd-jsdoc. This method allows for the current JavaScript to remain relatively untouched while also supporting TypeScript.

We were going to open a PR here soon with the type generation script and JSDoc annotation updates. There would also be a separate PR in DefinitelyTyped to add a new open-dis module. It would be installed like other type modules: npm install --save-dev @types/open-dis.