lumber icon indicating copy to clipboard operation
lumber copied to clipboard

Are there any plans to use typescript for Lumber, or are there any options there

Open danhawkins opened this issue 4 years ago • 4 comments

We are using Typescript heavily with our company, when we want to use forest we have to mix JS and TS in our product repos. Do you have plans to adopt Typescript for Lumber?

danhawkins avatar Oct 09 '20 15:10 danhawkins

Hi @danhawkins, The generation of Admin backend in Typescript is not part of our roadmap, but I'll share your insight to the team.

So far the only way to do so is to generate your Admin backend in Javascript (with the default lumber generate command) and then "translate" manually the project in Typescript.

arnaudbesnier avatar Oct 15 '20 06:10 arnaudbesnier

Here is a recent documentation that will help you migrate your project to TypeScript: https://docs.forestadmin.com/woodshop/how-tos/translate-your-app-into-typescript

arnaudbesnier avatar Nov 18 '20 11:11 arnaudbesnier

@arnaudbesnier but still, cli will always generates javascript file right ?

julestruong avatar Nov 07 '22 08:11 julestruong

Hello @julestruong, yes that’s right. By the way, lumber is now deprecated, you should use the Forest CLI (aka toolbelt) instead.

arnaudbesnier avatar Nov 07 '22 08:11 arnaudbesnier