gptrpg icon indicating copy to clipboard operation
gptrpg copied to clipboard

chore: typescript migration

Open joshuafsharp opened this issue 1 year ago • 2 comments

Wondering if you're keen on getting type safety in this project, as mentioned in the following issue: https://github.com/dzoba/gptrpg/issues/11

I've been working on updates in my fork, so happy to share the changes I've made to use Typescript. I tried to make the minimal changes possible to add Typescript support, so the functionality should be equivalent to the latest commit on main.

The only other change I made is to simplify the phaser client initialisation with typescript. There's a MainScene class containing all the preload, create and update functions, which is supplied to the Phaser config.

joshuafsharp avatar Apr 25 '23 07:04 joshuafsharp

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

jit-ci[bot] avatar Apr 25 '23 07:04 jit-ci[bot]

Thanks for this! I will review.

dzoba avatar Apr 25 '23 16:04 dzoba