-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptBugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Milestone
Description
Tiny issue. ts.sys.getModifiedTime
has the following signature:
getModifiedTime?(path: string): Date;
But it actually returns undefined
for invalid paths.
TypeScript Version: 2.9.2
Search Terms:
getModifiedTime
Code
const modifiedTime = ts.sys.getModifiedTime(`/invalid/path`)
Expected behavior:
Signature should match implementation. In this case:
getModifiedTime?(path: string): Date | undefined;
Actual behavior:
Return type can be undefined
Playground Link:
Related Issues:
Metadata
Metadata
Assignees
Labels
APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptBugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this