Closed lukeKonopka closed 4 years ago
Merging #956 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #956 +/- ##
=======================================
Coverage 88.33% 88.33%
=======================================
Files 29 29
Lines 797 797
=======================================
Hits 704 704
Misses 93 93
Description
We know that if
isLoaded()
helper returnstrue
the argument is notundefined
. I added an overload to isLoaded function type so that it will narrow type of its argument.Unfortunately this only works for single argument (we can't have type predicates that reference spread arguments).
Check List
If not relevant to pull request, check off as complete
Relevant Issues
Fixes #955