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

Commit

Permalink
docs: update files.rm example (#3797)
Browse files Browse the repository at this point in the history
The argumuent type for multiple files was wrong.

Closes #3794
  • Loading branch information
achingbrain authored Aug 9, 2021
1 parent 1ad6001 commit b7fc9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ipfs-core-types/src/files/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export interface API<OptionExtension = {}> {
* await ipfs.files.rm('/my/beautiful/file.txt')
*
* // To remove multiple files
* await ipfs.files.rm('/my/beautiful/file.txt', '/my/other/file.txt')
* await ipfs.files.rm(['/my/beautiful/file.txt', '/my/other/file.txt'])
*
* // To remove a directory
* await ipfs.files.rm('/my/beautiful/directory', { recursive: true })
Expand Down

0 comments on commit b7fc9e8

Please sign in to comment.