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?

  • 2
    You mean for Salesforce app or app outside Salesforce ? – Mohith Shrivastava Aug 4 '19 at 16:19
  • 1
    app outside Salesforce. I think we can't use typescript for salesforce app (as mentioned in the doc) – Rakesh Boinepalli Aug 5 '19 at 20:28

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.