TypeScript definitions for PlayCanvas


#1

If you are developing with the PlayCanvas Engine (without the Editor), it’s now possible to get full type-checking support when using TypeScript.

To generate the PlayCanvas JS engine playcanvas.js and a matching TypeScript definitions file playcanvas.d.ts, open a command prompt and do:

  1. git clone https://github.com/playcanvas/engine.git
  2. cd engine
  3. npm install
  4. npm run build
  5. npm run tsd

Et voilà!

Note that both files are output to the build/output folder.

The Pull Request that added support for this can be found here:


#2

Nice.

01110100 01101000 01100001 01101110 01101011 01111001 01101111 01110101 01110000 01101100 01100001 01111001 01100011 01100001 01101110 01110110 01100001 01110011


#3

I lowkey have no idea what that is but ok