-
Notifications
You must be signed in to change notification settings - Fork 28
Fix lint/tsc issues when the strict tsc flag is true #464
Fix lint/tsc issues when the strict tsc flag is true #464
Conversation
Codecov Report
@@ Coverage Diff @@
## master #464 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 53 53
Lines 1642 1642
Branches 241 241
=====================================
Hits 1642 1642
Continue to review full report at Codecov.
|
bcd61aa
to
a2a8b47
Compare
strict
tsc flag is true
@Blackbaud-BobbyEarl I took a look and I think I'm fine with these changes, but I'd like to get your take on it as well. |
a2a8b47
to
b074824
Compare
Hey @mattfurness , can you clarify how I might best see these errors prior to your changes? I ran |
The errors I found and fixed here were from turning on strict temporarily in this repo and running the tests. I have created a temporary PR in the internal BB |
d0a4cf3
to
f33a3ec
Compare
This commit aims to fix any issues when the `strict` flag is on without changing any of the current behavior, or public api at all. The idea is that no consumer will be adversely affected by this change. It will allow consumers to opt in to `strict` without any issues from skyux builder.
f33a3ec
to
f65c91b
Compare
Hey @Blackbaud-BobbyEarl. I work with @mattfurness on the Stacktrace team at Blackbaud. We noticed that you have updated a bunch of the files in There is one remaining error, which we have updated our PR to fix. You can reproduce this error yourself by running
When running
Our PR fixes this issue. We'd really appreciate you accepting this PR, as Thanks a lot! |
@mattfurness and @bentefay. First off, my sincerest apologies for being unresponsive on this issue. Thanks for hanging with us. This LGTM, but will look for additional validation from @Blackbaud-PaulCrowder and @Blackbaud-SteveBrush. |
This commit aims to fix any issues when the `strict` flag is on without changing any of the current behavior, or public api at all. The idea is that no consumer will be adversely affected by this change. It will allow consumers to opt in to `strict` without any issues from skyux builder.
Recently the Stacktrace team have found issues in their spas/libs that could have been caught earlier by the tsc if
strict
was turned on, particularlystrictNullChecks
. If we try to turn onstrict
in our spas/libs we get errors that originate in skyux-builder because the builder is built in to the spas/libs. This PR aims to do the least amount of work possible to allow consumers to turn onstrict
if they choose.It fixes the linting issues without changing any functionality or public / private api of skyux builder, mostly by:
undefined