[SOLVED] Does PlayCanvas support Typescript?

Hi,
Does playcanvas support typescript? Either in its own scripting namespace, or when a 3rd party script uses typescript. e.g. does playcanvas use/support tsc to compile the game?

thanks

Hi @Sesshomurai,

The Playcanvas engine comes with full typescript definitions, you can find instructions on the engine repo about that:

Typescript isn’t supported when coding scripts in the editor. But you can easily synchronize your local repository with your editor based project using the following tool:

1 Like

There’s a npm for playcanvas too which will have the type script defs. The online Editor doesn’t support type script. So you would have to build offline and upload the built.js to the Editor.

1 Like

Great, thank you!