Skip to content

Commit 0e044f7

Browse files
authored
Merge pull request #9 from BebeSparkelSparkel/lastModified
File lastModified
2 parents 2c2df4e + 4159183 commit 0e044f7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Web/File/File.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
"use strict";
22

33
exports.name = function (file) { return file.name; };
4+
5+
exports.lastModified = function (file) { return file.lastModified; };

src/Web/File/File.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ toBlob = unsafeCoerce
1414

1515
foreign import name :: File -> String
1616

17+
foreign import lastModified :: File -> Number
18+
1719
-- | (Inherited from `Blob`) `MediaType` of the data contained in the `Blob`.
1820
-- | Returns `Nothing` if the `MediaType` is unknown.
1921
type_ :: File -> Maybe MediaType

0 commit comments

Comments
 (0)