From 8b23f0ff809e355a83cb5f46aeab6e15f8479489 Mon Sep 17 00:00:00 2001 From: zhenweijin Date: Mon, 29 Apr 2024 11:16:52 +0800 Subject: [PATCH] doc: update the description of the return type for options.filter --- doc/api/fs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index d6afc9d5ea9403..0d2287a81aeb35 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1049,7 +1049,7 @@ changes: that resolves to `true` or `false` **Default:** `undefined`. * `src` {string} source path to copy. * `dest` {string} destination path to copy to. - * Returns: {boolean|Promise} + * Returns: `Promise` or the type that is coercible to `boolean`. * `force` {boolean} overwrite existing file or directory. The copy operation will ignore errors if you set this to false and the destination exists. Use the `errorOnExist` option to change this behavior. @@ -2455,7 +2455,7 @@ changes: that resolves to `true` or `false` **Default:** `undefined`. * `src` {string} source path to copy. * `dest` {string} destination path to copy to. - * Returns: {boolean|Promise} + * Returns: `Promise` or the type that is coercible to `boolean`. * `force` {boolean} overwrite existing file or directory. The copy operation will ignore errors if you set this to false and the destination exists. Use the `errorOnExist` option to change this behavior. @@ -5447,7 +5447,7 @@ changes: all of its contents will be skipped as well. **Default:** `undefined` * `src` {string} source path to copy. * `dest` {string} destination path to copy to. - * Returns: {boolean} + * Returns: the type that is coercible to `boolean`. * `force` {boolean} overwrite existing file or directory. The copy operation will ignore errors if you set this to false and the destination exists. Use the `errorOnExist` option to change this behavior.