File tree 2 files changed +129
-109
lines changed
2 files changed +129
-109
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,10 @@ interface FileSystemGetFileOptions {
198
198
create ?: boolean ;
199
199
}
200
200
201
+ interface FileSystemReadWriteOptions {
202
+ at ?: number ;
203
+ }
204
+
201
205
interface FileSystemRemoveOptions {
202
206
recursive ?: boolean ;
203
207
}
@@ -1735,6 +1739,7 @@ declare var FileSystemDirectoryHandle: {
1735
1739
/** Available only in secure contexts. */
1736
1740
interface FileSystemFileHandle extends FileSystemHandle {
1737
1741
readonly kind : "file" ;
1742
+ createSyncAccessHandle ( ) : Promise < FileSystemSyncAccessHandle > ;
1738
1743
getFile ( ) : Promise < File > ;
1739
1744
}
1740
1745
@@ -1755,6 +1760,21 @@ declare var FileSystemHandle: {
1755
1760
new ( ) : FileSystemHandle ;
1756
1761
} ;
1757
1762
1763
+ /** Available only in secure contexts. */
1764
+ interface FileSystemSyncAccessHandle {
1765
+ close ( ) : void ;
1766
+ flush ( ) : void ;
1767
+ getSize ( ) : number ;
1768
+ read ( buffer : BufferSource , options ?: FileSystemReadWriteOptions ) : number ;
1769
+ truncate ( newSize : number ) : void ;
1770
+ write ( buffer : BufferSource , options ?: FileSystemReadWriteOptions ) : number ;
1771
+ }
1772
+
1773
+ declare var FileSystemSyncAccessHandle : {
1774
+ prototype : FileSystemSyncAccessHandle ;
1775
+ new ( ) : FileSystemSyncAccessHandle ;
1776
+ } ;
1777
+
1758
1778
interface FontFace {
1759
1779
ascentOverride : string ;
1760
1780
descentOverride : string ;
You can’t perform that action at this time.
0 commit comments