From 0ecb4e64f0006a0dd2fb64cb64f97ed01c638781 Mon Sep 17 00:00:00 2001 From: Mikhail Mikhaylov <9201284+mikemikhaylov@users.noreply.github.com> Date: Mon, 6 Mar 2023 10:25:32 -0800 Subject: [PATCH] Fixes JSDoc in Clipboard setString (#36381) Summary: There was a JSDoc mismatch in `Clipboard.setString` method, `the` was considered as a parameter name, not `content`. Added correct param name and kept the same description as before, separated with a hyphen. ## Changelog [GENERAL] [FIXED] - Fixes JSDoc in Cliapboard setString Pull Request resolved: https://github.com/facebook/react-native/pull/36381 Test Plan: No tests needed Reviewed By: yungsters Differential Revision: D43839086 Pulled By: cortinico fbshipit-source-id: 126035d9796e66938402704eaf9bc8646ee9b78b --- Libraries/Components/Clipboard/Clipboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/Clipboard/Clipboard.js b/Libraries/Components/Clipboard/Clipboard.js index d387a229139ec7..5a5acf9d9dbd6c 100644 --- a/Libraries/Components/Clipboard/Clipboard.js +++ b/Libraries/Components/Clipboard/Clipboard.js @@ -32,7 +32,7 @@ module.exports = { * Clipboard.setString('hello world'); * } * ``` - * @param the content to be stored in the clipboard. + * @param {string} content the content to be stored in the clipboard. */ setString(content: string) { NativeClipboard.setString(content);