Actions code editor using Typescript

Would be great if we could write TS in the code editor for things like Actions.

Hi @fandy!

Typescript is indeed a pretty nice language that we ourselves use to code Botpress! As of right now, it is not possible to code actions and hooks in the code editor with Typescript. If there is a strong enough demand for this feature, we’ll surely consider it!

In the meantime, your sure can code actions and hooks in Typescript in visual studio code, build them and then copy the resulting javascript file to your /data/global/actions directory.

Also, instead of javascript hooks, you can code your own custom module in Typescript, which allows you to define middlewares! Middleware essentially can achieve the same tasks as hooks. Read this if you want to learn more.

Hope this information helps,

François