@types/filesystem
Advanced tools
Comparing version 0.0.30 to 0.0.31
@@ -104,3 +104,3 @@ // Type definitions for File System API | ||
*/ | ||
name: string; | ||
readonly name: string; | ||
@@ -110,6 +110,6 @@ /** | ||
*/ | ||
root: DirectoryEntry; | ||
readonly root: FileSystemDirectoryEntry; | ||
} | ||
interface Entry { | ||
interface FileSystemEntry { | ||
@@ -119,3 +119,3 @@ /** | ||
*/ | ||
isFile: boolean; | ||
readonly isFile: boolean; | ||
@@ -125,3 +125,3 @@ /** | ||
*/ | ||
isDirectory: boolean; | ||
readonly isDirectory: boolean; | ||
@@ -138,3 +138,3 @@ /** | ||
*/ | ||
name: string; | ||
readonly name: string; | ||
@@ -144,3 +144,3 @@ /** | ||
*/ | ||
fullPath: string; | ||
readonly fullPath: string; | ||
@@ -150,3 +150,3 @@ /** | ||
*/ | ||
filesystem: FileSystem; | ||
readonly filesystem: FileSystem; | ||
@@ -167,3 +167,3 @@ /** | ||
*/ | ||
moveTo(parent: DirectoryEntry, newName?: string, successCallback?: EntryCallback, errorCallback?: ErrorCallback): void; | ||
moveTo(parent: FileSystemDirectoryEntry, newName?: string, successCallback?: EntryCallback, errorCallback?: ErrorCallback): void; | ||
@@ -185,3 +185,3 @@ /** | ||
*/ | ||
copyTo(parent: DirectoryEntry, newName?: string, successCallback?: EntryCallback, errorCallback?: ErrorCallback): void; | ||
copyTo(parent: FileSystemDirectoryEntry, newName?: string, successCallback?: EntryCallback, errorCallback?: ErrorCallback): void; | ||
@@ -208,6 +208,9 @@ /** | ||
/** Alias provided for backward compatibility */ | ||
type Entry = FileSystemEntry; | ||
/** | ||
* This interface represents a directory on a file system. | ||
*/ | ||
interface DirectoryEntry extends Entry { | ||
interface FileSystemDirectoryEntry extends FileSystemEntry { | ||
/** | ||
@@ -259,2 +262,5 @@ * Creates a new DirectoryReader to read Entries from this Directory. | ||
/** Alias provided for backward compatibility */ | ||
type DirectoryEntry = FileSystemDirectoryEntry; | ||
/** | ||
@@ -281,3 +287,3 @@ * This interface lets a user list files and directories in a directory. If there are no additions to or deletions from a directory between the first and last call to readEntries, and no errors occur, then: | ||
*/ | ||
interface FileEntry extends Entry { | ||
interface FileEntry extends FileSystemEntry { | ||
/** | ||
@@ -315,3 +321,3 @@ * Creates a new FileWriter associated with the file that this FileEntry represents. | ||
*/ | ||
(entry: Entry): void; | ||
(entry: FileSystemEntry): void; | ||
} | ||
@@ -336,3 +342,3 @@ | ||
*/ | ||
(entry: DirectoryEntry): void; | ||
(entry: FileSystemDirectoryEntry): void; | ||
} | ||
@@ -344,3 +350,3 @@ | ||
interface EntriesCallback { | ||
(entries: Entry[]): void; | ||
(entries: FileSystemEntry[]): void; | ||
} | ||
@@ -380,3 +386,3 @@ | ||
interface ErrorCallback { | ||
(err: DOMError): void; | ||
(err: Error): void; | ||
} | ||
@@ -383,0 +389,0 @@ |
{ | ||
"name": "@types/filesystem", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "TypeScript definitions for File System API", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/filesystem", | ||
"license": "MIT", | ||
@@ -23,4 +24,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "9327e96f72334231d6a4431f82c7b4ddc0f0bb136dd7f69b13a0ac2de54f0b62", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "cfbe677fb1fbe41ca6615f63be6c4cb4e96e90d0553a5bdd73939ed0e960aed2", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 25 Mar 2021 17:31:23 GMT | ||
* Last updated: Fri, 25 Jun 2021 07:31:16 GMT | ||
* Dependencies: [@types/filewriter](https://npmjs.com/package/@types/filewriter) | ||
@@ -14,0 +14,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
24918
477
1