TypeScript definitions for the client side

26 Jun 2018, 13:32

Hi there,
I'm new to multiplayer development. I've been using TypeScript and Visual Code for my html5 games.

I've seen the defs for the server side, but are there any defs. for the client side?

26 Jun 2018, 14:07

Hey @enriqueto, welcome!

If you're using webpack + typescript (recommended) you don't need to worry about the type definitions, the TypeScript compiler will grab them automatically from the NPM package.

If you prefer using the distribution file directly (.js + .d.ts), you can find them here: https://github.com/gamestdio/colyseus.js/tree/master/dist

Cheers!

26 Jun 2018, 14:46

Muito obrigado.

I need to switch using webpack + TS yet. I'll use the distribution files for this project.