9

I have already deployed some 4 or 5 functions to firebase using JavaScript. But now I want to use async-await in my 2 functions. So I want to convert these 2 functions to TypeScript. Is it possible? If I change .js to .ts do the other functions work well which are in js

1 Answer 1

16

All JavaScript is valid TypeScript. TypeScript is a superset of JavaScript.

You should be able to simply change you .js files to .ts to see them work immediately. Then, you can add in TypeScript specific code as you see fit.

Sign up to request clarification or add additional context in comments.

1 Comment

Noice! Thanks Doug.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.