Typescript in LWC

Can we write typescript in open source LWC?

I believe we can’t in salesforce specific LWC. When I try to install LWC via npx lwc-create-app my-app, I don’t see tsconfig.json.

So I wanted to check if we can use typescript in LWC?

Answer

For OSS LWC: It is planned to release typescript support in the next couple of weeks (so monitor the github page of the lwc-create-app) #safeharbor

For On Platform LWC: Most likely never because updates often bring “breaking” changes and therefore salesforce consider typescript as too “unstable” to be provided on their platform

Attribution
Source : Link , Question Author : Rakesh Boinepalli , Answer Author : Renji-xD

Leave a Comment