Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b7fc9e8

Browse files
authoredAug 9, 2021
docs: update files.rm example (#3797)
The argumuent type for multiple files was wrong. Closes #3794
1 parent 1ad6001 commit b7fc9e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/ipfs-core-types/src/files/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export interface API<OptionExtension = {}> {
7979
* await ipfs.files.rm('/my/beautiful/file.txt')
8080
*
8181
* // To remove multiple files
82-
* await ipfs.files.rm('/my/beautiful/file.txt', '/my/other/file.txt')
82+
* await ipfs.files.rm(['/my/beautiful/file.txt', '/my/other/file.txt'])
8383
*
8484
* // To remove a directory
8585
* await ipfs.files.rm('/my/beautiful/directory', { recursive: true })

0 commit comments

Comments
 (0)
This repository has been archived.