-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Experimentation NeededSomeone needs to try this out to see what happensSomeone needs to try this out to see what happensGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisPursuitFellowshipHelp wanted from Pursuit fellowship; others please avoid until Dec 19Help wanted from Pursuit fellowship; others please avoid until Dec 19SuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
TypeScript Version: 3.8.0-dev.20191207
Search Terms:
Code
With strict null checks enabled:
import * as fs from 'fs';
fs.stat('/path/to/file', function(err, stats) {
if (stats.isFile || stats.isDirectory) {
}
});
Expected behavior:
Accesses to isFile
and isDirectory
are reported as errors since these are actually functions
Actual behavior:
No errors.
Errors are only reported when there is a single conditional
Playground Link:
Related Issues:
vladimir-tikhonov
Metadata
Metadata
Assignees
Labels
Experimentation NeededSomeone needs to try this out to see what happensSomeone needs to try this out to see what happensGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisPursuitFellowshipHelp wanted from Pursuit fellowship; others please avoid until Dec 19Help wanted from Pursuit fellowship; others please avoid until Dec 19SuggestionAn idea for TypeScriptAn idea for TypeScript