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

Commit dd6b7bf

Browse files
committed
docs: update files.rm example
The argumuent type for multiple files was wrong. Closes #3794
1 parent 1ad6001 commit dd6b7bf

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)