Skip to content

Iss81 - Fixed strictNullChecks TS option incompatibility#90

Open
pascallaprade wants to merge 4 commits intogmostert:masterfrom
pascallaprade:iss81
Open

Iss81 - Fixed strictNullChecks TS option incompatibility#90
pascallaprade wants to merge 4 commits intogmostert:masterfrom
pascallaprade:iss81

Conversation

@pascallaprade
Copy link

@pascallaprade pascallaprade commented Nov 1, 2017

This aims to close issue #81.

Since Angular 4+ (which this library targets), the strictNullChecks TypeScript compiler option is officially supported by the Angular project.

This means that users wishing to enforce stricter compiler rules for their projects should be able to do so.

However, this library did not support that option, because one of the variable was incorrectly typed.

This pull request brings official support for this option, just like the Angular project itself, by adding that option to its compiler options. It also fixes the faulty line that did not pass that check.

Pascal Laprade added 3 commits October 31, 2017 22:20
Also introduced npm 5+ package-lock.json file to project.
Since Angular 4+, this option is supported, but this library did
not support it, causing compile issues for users wishing to use
stricter rules in their project. This commit brings support for
this option to the library.
@pascallaprade
Copy link
Author

I updated the pull request by resolving issue #91 as well, since they were related, and since a fix for #91 would need the previous fix in order to be implemented.

Only one part of the code didn't compile under strict rules, and it was once again only a wrong type that was previously ignored by TypeScript, so I thought the change was small enough to be included in this request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant