I have noticed a reoccurring issue with variables not being defined in ts/tsx files because the code was written in js even though all files had already been switched over to tsx. This has led to compiling issues for the website and I have had to solve many errors involved with this. I think the way forward is to learn how our variables need to be defined prior to code commits, otherwise another person upon trying to fix the resulting errors will have to learn explicitly how the code and its variables are intended to be used. This can be an arduous process that should be pretty simple to circumvent by just defining variables initially.
I have noticed a reoccurring issue with variables not being defined in ts/tsx files because the code was written in js even though all files had already been switched over to tsx. This has led to compiling issues for the website and I have had to solve many errors involved with this. I think the way forward is to learn how our variables need to be defined prior to code commits, otherwise another person upon trying to fix the resulting errors will have to learn explicitly how the code and its variables are intended to be used. This can be an arduous process that should be pretty simple to circumvent by just defining variables initially.
See this website for more info: https://www.sanity.io/typescript-guide/typescript-vs-javascript