File tree Expand file tree Collapse file tree 2 files changed +129
-109
lines changed Expand file tree Collapse file tree 2 files changed +129
-109
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,10 @@ interface FileSystemGetFileOptions {
198198 create ?: boolean ;
199199}
200200
201+ interface FileSystemReadWriteOptions {
202+ at ?: number ;
203+ }
204+
201205interface FileSystemRemoveOptions {
202206 recursive ?: boolean ;
203207}
@@ -1735,6 +1739,7 @@ declare var FileSystemDirectoryHandle: {
17351739/** Available only in secure contexts. */
17361740interface FileSystemFileHandle extends FileSystemHandle {
17371741 readonly kind : "file" ;
1742+ createSyncAccessHandle ( ) : Promise < FileSystemSyncAccessHandle > ;
17381743 getFile ( ) : Promise < File > ;
17391744}
17401745
@@ -1755,6 +1760,21 @@ declare var FileSystemHandle: {
17551760 new ( ) : FileSystemHandle ;
17561761} ;
17571762
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+
17581778interface FontFace {
17591779 ascentOverride : string ;
17601780 descentOverride : string ;
You can’t perform that action at this time.
0 commit comments