@@ -363,7 +363,7 @@ export interface UnixFS {
363
363
* }
364
364
* ```
365
365
*/
366
- addAll : ( source : ImportCandidateStream , options ?: Partial < AddOptions > ) => AsyncIterable < ImportResult >
366
+ addAll ( source : ImportCandidateStream , options ?: Partial < AddOptions > ) : AsyncIterable < ImportResult >
367
367
368
368
/**
369
369
* Add a single `Uint8Array` to your Helia node as a file.
@@ -376,7 +376,7 @@ export interface UnixFS {
376
376
* console.info(cid)
377
377
* ```
378
378
*/
379
- addBytes : ( bytes : Uint8Array , options ?: Partial < AddOptions > ) => Promise < CID >
379
+ addBytes ( bytes : Uint8Array , options ?: Partial < AddOptions > ) : Promise < CID >
380
380
381
381
/**
382
382
* Add a stream of `Uint8Array` to your Helia node as a file.
@@ -392,7 +392,7 @@ export interface UnixFS {
392
392
* console.info(cid)
393
393
* ```
394
394
*/
395
- addByteStream : ( bytes : ByteStream , options ?: Partial < AddOptions > ) => Promise < CID >
395
+ addByteStream ( bytes : ByteStream , options ?: Partial < AddOptions > ) : Promise < CID >
396
396
397
397
/**
398
398
* Add a file to your Helia node with optional metadata.
@@ -413,7 +413,7 @@ export interface UnixFS {
413
413
* console.info(cid)
414
414
* ```
415
415
*/
416
- addFile : ( file : FileCandidate , options ?: Partial < AddOptions > ) => Promise < CID >
416
+ addFile ( file : FileCandidate , options ?: Partial < AddOptions > ) : Promise < CID >
417
417
418
418
/**
419
419
* Add a directory to your Helia node.
@@ -426,7 +426,7 @@ export interface UnixFS {
426
426
* console.info(cid)
427
427
* ```
428
428
*/
429
- addDirectory : ( dir ?: Partial < DirectoryCandidate > , options ?: Partial < AddOptions > ) => Promise < CID >
429
+ addDirectory ( dir ?: Partial < DirectoryCandidate > , options ?: Partial < AddOptions > ) : Promise < CID >
430
430
431
431
/**
432
432
* Retrieve the contents of a file from your Helia node.
@@ -439,7 +439,7 @@ export interface UnixFS {
439
439
* }
440
440
* ```
441
441
*/
442
- cat : ( cid : CID , options ?: Partial < CatOptions > ) => AsyncIterable < Uint8Array >
442
+ cat ( cid : CID , options ?: Partial < CatOptions > ) : AsyncIterable < Uint8Array >
443
443
444
444
/**
445
445
* Change the permissions on a file or directory in a DAG
@@ -457,7 +457,7 @@ export interface UnixFS {
457
457
* console.info(afterCid, afterStats)
458
458
* ```
459
459
*/
460
- chmod : ( cid : CID , mode : number , options ?: Partial < ChmodOptions > ) => Promise < CID >
460
+ chmod ( cid : CID , mode : number , options ?: Partial < ChmodOptions > ) : Promise < CID >
461
461
462
462
/**
463
463
* Add a file or directory to a target directory.
@@ -473,7 +473,7 @@ export interface UnixFS {
473
473
* console.info(updatedCid)
474
474
* ```
475
475
*/
476
- cp : ( source : CID , target : CID , name : string , options ?: Partial < CpOptions > ) => Promise < CID >
476
+ cp ( source : CID , target : CID , name : string , options ?: Partial < CpOptions > ) : Promise < CID >
477
477
478
478
/**
479
479
* List directory contents.
@@ -486,7 +486,7 @@ export interface UnixFS {
486
486
* }
487
487
* ```
488
488
*/
489
- ls : ( cid : CID , options ?: Partial < LsOptions > ) => AsyncIterable < UnixFSEntry >
489
+ ls ( cid : CID , options ?: Partial < LsOptions > ) : AsyncIterable < UnixFSEntry >
490
490
491
491
/**
492
492
* Make a new directory under an existing directory.
@@ -501,7 +501,7 @@ export interface UnixFS {
501
501
* console.info(updatedCid)
502
502
* ```
503
503
*/
504
- mkdir : ( cid : CID , dirname : string , options ?: Partial < MkdirOptions > ) => Promise < CID >
504
+ mkdir ( cid : CID , dirname : string , options ?: Partial < MkdirOptions > ) : Promise < CID >
505
505
506
506
/**
507
507
* Remove a file or directory from an existing directory.
@@ -517,7 +517,7 @@ export interface UnixFS {
517
517
* console.info(finalCid)
518
518
* ```
519
519
*/
520
- rm : ( cid : CID , path : string , options ?: Partial < RmOptions > ) => Promise < CID >
520
+ rm ( cid : CID , path : string , options ?: Partial < RmOptions > ) : Promise < CID >
521
521
522
522
/**
523
523
* Return statistics about a UnixFS DAG.
@@ -532,7 +532,7 @@ export interface UnixFS {
532
532
* console.info(stats)
533
533
* ```
534
534
*/
535
- stat : ( cid : CID , options ?: Partial < StatOptions > ) => Promise < UnixFSStats >
535
+ stat ( cid : CID , options ?: Partial < StatOptions > ) : Promise < UnixFSStats >
536
536
537
537
/**
538
538
* Update the mtime of a UnixFS DAG
@@ -550,7 +550,7 @@ export interface UnixFS {
550
550
* console.info(afterCid, afterStats)
551
551
* ```
552
552
*/
553
- touch : ( cid : CID , options ?: Partial < TouchOptions > ) => Promise < CID >
553
+ touch ( cid : CID , options ?: Partial < TouchOptions > ) : Promise < CID >
554
554
}
555
555
556
556
class DefaultUnixFS implements UnixFS {
0 commit comments