Greg Solo
Aug 15, 2021

--

Hello there! Thank you for your kind words and for reaching out! 🙏

I think what you experience is called Strict Class Initialization in typescript: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#strict-class-initialization It surely is a helpful rule but I doubt there is much benefit of it in this case. You could turn it off in your tsconfig.json our suppress by adding an exclamation mark to the property.

Hope that helps!

--

--

Greg Solo
Greg Solo

Written by Greg Solo

Software Engineer. Immigrant. Entrepreneur. I have been telling stories through software for 15 years in the hope to craft a better future

No responses yet