question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DOM File.lastModifiedDate is deprecated

See original GitHub issue

TypeScript Version: 2.4.1

Code https://github.com/Microsoft/TypeScript/blob/2a6aacd0ef614a38b08ef712adc377c13648f373/lib/lib.dom.d.ts#L3758

Expected behavior:

Add lastModified and leave lastModifiedDate there.

  readonly lastModified: number;

Actual behavior:

file: 'file:///test.ts'
severity: '错误'
message: 'Property 'lastModified' does not exist on type 'File'.'
at: '56,14'
source: 'ts'

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
HolgerJeromincommented, Apr 5, 2022

I think this issue can be closed. We have lastModified and no lastModifiedDate now:

interface File extends Blob {
    readonly lastModified: number;
    readonly name: string;
}
0reactions
saschanazcommented, Nov 14, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

File.lastModifiedDate - Web APIs - MDN Web Docs
Deprecated : This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the ......
Read more >
File.lastModifiedDate - Dom - CodeProject Reference
Deprecated This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of...
Read more >
File.lastModifiedDate
Deprecated This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the ...
Read more >
File's properties: lastModified vs lastModifiedDate
In this case the correct procedure is to verify programmatically if lastModified is available and in that case use it; ...
Read more >
File - Apache Cordova
This version of the documentation is outdated! Click here for the latest released ... (DOMString); lastModifiedDate: The last time the file was modified....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found