@@ -96,7 +96,7 @@ export interface MFS {
96
96
* await fs.writeBytes(Uint8Array.from([0, 1, 2, 3]), '/foo.txt')
97
97
* ```
98
98
*/
99
- writeBytes : ( bytes : Uint8Array , path : string , options ?: Partial < WriteOptions > ) => Promise < void >
99
+ writeBytes ( bytes : Uint8Array , path : string , options ?: Partial < WriteOptions > ) : Promise < void >
100
100
101
101
/**
102
102
* Add a stream of `Uint8Array` to your MFS as a file.
@@ -110,7 +110,7 @@ export interface MFS {
110
110
* await fs.writeByteStream(stream, '/foo.txt')
111
111
* ```
112
112
*/
113
- writeByteStream : ( bytes : ByteStream , path : string , options ?: Partial < WriteOptions > ) => Promise < void >
113
+ writeByteStream ( bytes : ByteStream , path : string , options ?: Partial < WriteOptions > ) : Promise < void >
114
114
115
115
/**
116
116
* Retrieve the contents of a file from your MFS.
@@ -123,7 +123,7 @@ export interface MFS {
123
123
* }
124
124
* ```
125
125
*/
126
- cat : ( path : string , options ?: Partial < CatOptions > ) => AsyncIterable < Uint8Array >
126
+ cat ( path : string , options ?: Partial < CatOptions > ) : AsyncIterable < Uint8Array >
127
127
128
128
/**
129
129
* Change the permissions on a file or directory in your MFS
@@ -141,7 +141,7 @@ export interface MFS {
141
141
* console.info(afterStats)
142
142
* ```
143
143
*/
144
- chmod : ( path : string , mode : number , options ?: Partial < ChmodOptions > ) => Promise < void >
144
+ chmod ( path : string , mode : number , options ?: Partial < ChmodOptions > ) : Promise < void >
145
145
146
146
/**
147
147
* Add a file or directory to a target directory in your MFS.
@@ -165,7 +165,7 @@ export interface MFS {
165
165
* await fs.cp('/foo.txt', '/bar.txt')
166
166
* ```
167
167
*/
168
- cp : ( source : CID | string , destination : string , options ?: Partial < CpOptions > ) => Promise < void >
168
+ cp ( source : CID | string , destination : string , options ?: Partial < CpOptions > ) : Promise < void >
169
169
170
170
/**
171
171
* List directory contents from your MFS.
@@ -178,7 +178,7 @@ export interface MFS {
178
178
* }
179
179
* ```
180
180
*/
181
- ls : ( path ?: string , options ?: Partial < LsOptions > ) => AsyncIterable < UnixFSEntry >
181
+ ls ( path ?: string , options ?: Partial < LsOptions > ) : AsyncIterable < UnixFSEntry >
182
182
183
183
/**
184
184
* Make a new directory in your MFS.
@@ -189,7 +189,7 @@ export interface MFS {
189
189
* await fs.mkdir('/new-dir')
190
190
* ```
191
191
*/
192
- mkdir : ( path : string , options ?: Partial < MkdirOptions > ) => Promise < void >
192
+ mkdir ( path : string , options ?: Partial < MkdirOptions > ) : Promise < void >
193
193
194
194
/**
195
195
* Remove a file or directory from your MFS.
@@ -201,7 +201,7 @@ export interface MFS {
201
201
* await fs.rm('/new-dir')
202
202
* ```
203
203
*/
204
- rm : ( path : string , options ?: Partial < RmOptions > ) => Promise < void >
204
+ rm ( path : string , options ?: Partial < RmOptions > ) : Promise < void >
205
205
206
206
/**
207
207
* Return statistics about a UnixFS DAG in your MFS.
@@ -215,7 +215,7 @@ export interface MFS {
215
215
* console.info(stats)
216
216
* ```
217
217
*/
218
- stat : ( path : string , options ?: Partial < StatOptions > ) => Promise < UnixFSStats >
218
+ stat ( path : string , options ?: Partial < StatOptions > ) : Promise < UnixFSStats >
219
219
220
220
/**
221
221
* Update the mtime of a UnixFS DAG in your MFS.
@@ -233,7 +233,7 @@ export interface MFS {
233
233
* console.info(afterStats)
234
234
* ```
235
235
*/
236
- touch : ( path : string , options ?: Partial < TouchOptions > ) => Promise < void >
236
+ touch ( path : string , options ?: Partial < TouchOptions > ) : Promise < void >
237
237
}
238
238
239
239
interface PathEntry {
0 commit comments