From dd6b7bf2bf60ac09c84d59ed97b3b844cdbb3b08 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Mon, 9 Aug 2021 14:11:33 +0100 Subject: [PATCH] docs: update files.rm example The argumuent type for multiple files was wrong. Closes #3794 --- packages/ipfs-core-types/src/files/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ipfs-core-types/src/files/index.d.ts b/packages/ipfs-core-types/src/files/index.d.ts index 0086405584..1a9ce00efb 100644 --- a/packages/ipfs-core-types/src/files/index.d.ts +++ b/packages/ipfs-core-types/src/files/index.d.ts @@ -79,7 +79,7 @@ export interface API { * 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 })