Enable non nullable types #193
Comments
|
I'be been doing some analysis on this and it is better to wait for now until TypeScript 2.0 becomes stable. |
|
I'm starting to learn more about TypeScript and I think that InversifyJS is an awesome project to start on. I'd like to give this issue some love now that TS 2.0 is officially released. I've started to play around and see what happens if we enable I'd like to see your thoughts about it. I understand that many of these issues should be handled accordly. For example the Another example is the Anyway, I'll just fork it and try to play around with this and see where I can get. Just wanted to know if this is something you're already working on, or maybe you got some outcome that you could share from your previous analysis. By the way, what you think about moving from |
|
Hi @goenning thanks for the comments. I tried this sometime ago and it is a big change. Some help is more than welcome. I will take a look to your branch over the next few days and share my thoughts. I'm working at the moment on a big refactor you can explore it here and see the changes here. I would recommend you to wait until I get it merged it into master or it will be a nightmare to resolve the conflicts. I'm planning to get it done over the next 2-3 weeks. Also one of the things that we need to explore is that the changes should improve the code (prevent issues) but it should not cause trouble for our users, please keep in mind that |
|
Oh, that's good to know. I prefer to wait and avoid a big merge conflict. I'll keep an eye on it :) |
|
Hi @goenning I just merged the big refactor that I was talking about |
* Remove default exports * Upgraded tslint * Implemented #408 * Implementes #419 * fixes #405 * release 3.0.0-beta.2 * Implements #421 & refactor enum -> literal types * Added #421 docs * Working on #193 * Working on #193 * Working on #193 * Working on #193 * Working on #193 * Working on #193 * Working on #193 * Working on #193
* Remove default exports * Upgraded tslint * Implemented #408 * Implementes #419 * fixes #405 * release 3.0.0-beta.2 * Implements #421 & refactor enum -> literal types * Added #421 docs * Working on #193 * Working on #193 * Working on #193 * Working on #193 * Working on #193 * Working on #193 * Working on #193 * Working on #193 * [WIP] #418 * [WIP] #418
We should upgrade to TypeScript 1.9 and use Non-nullable types.
Strict null checking can be enabled with a new
--strictNullCheckscompiler switch.The text was updated successfully, but these errors were encountered: