Commit Graph

8 Commits

Author SHA1 Message Date
David Li
f6229f0cf4 filesystem: Quality-of-life changes
Certain methods always return a specific Entry type. Define more
  specific callbacks so that typescript can infer when an Entry is
  a DirectoryEntry or FileEntry, removing the need to explicitly
  state the type in certain callbacks.

  Existing code using this definition should not be broken as a
  result of this change.

Signed-off-by: David Li <jiawei.davidli@gmail.com>
2015-03-07 01:55:44 -05:00
Bart van der Schoor
1d345f6c14 cleaned-up headers 2014-06-18 23:31:11 +02:00
John Vilk
3a583df3e4 FileSystem root is a DirectoryEntry.
This is specified in the official standard:
http://www.w3.org/TR/file-system-api/#the-filesystem-interface

Interestingly enough, these typings already specify the `root` of
FileSystemSync (the synchronous version of the API) to be a DirectorySync. This must have been an oversight of the original author of these typings.
2014-03-24 12:24:46 -04:00
Bartvds
03eecbb681 added/fixed headers e-i
https://github.com/borisyankov/DefinitelyTyped/issues/1570
2014-01-24 00:19:24 +01:00
Niklas Mollenhauer
77a152db3e bool -> boolean 2013-06-19 01:54:04 +03:00
Diullei Gomes
5a400fcf66 fix filesystem tests 2013-02-24 13:35:48 -03:00
Kon
b8b9da614c Added filesystem-tests.d.ts 2013-02-22 09:03:09 +09:00
Kon
72ac9f1b6b Added definitions for File System API 2013-02-22 05:17:23 +09:00