mips
mips copied to clipboard
Multiple TS2564 (Property has no initializer) errors
A lot of "Property '' has no initializer and is not definitely assigned in the constructor." when running the build command.
This is a new issue coming along with the latest TypeScript version (2.7), more can be read here:
https://blogs.msdn.microsoft.com/typescript/2018/01/31/announcing-typescript-2-7/#stricter-class-property-checks
I'd make a pull request to fix but I don't know if you want to deactivate this check or manually assign all variables that have this error, if it is the latter, still don't know how you'd want to initialize most of them.
Thanks for bringing this up, will look into it!
I can try to infer the default values by analyzing how they are used when first defined and define them at the constructor.
It will also help me understand the codebase for future contributions
Thanks, any help is appreciated! I plan to look into this in the next couple of days, but one of my other priorities is adding full Floating-Point support.
@MikaelMello Just started a new branch floating-point to start adding FP support on. While working, I noticed what you mean about the new TypeScript initializer errors. Those fixes would definitely require a bit of context about the code-base. I will definitely get to them, so don't feel pressured. Thanks!