From e75682239db499cd34bfbfb7aed49eb98a2f2c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ma=C5=82ecki?= Date: Wed, 15 Jan 2025 02:41:56 -0800 Subject: [PATCH] Add explicit type to supported commands in TextInputNativeCommands Summary: Changelog: [General][Changed] - Added explicit type to supported commands in TextInputNativeCommands Differential Revision: D68205568 --- .../Libraries/Components/TextInput/TextInputNativeCommands.js | 2 +- .../Libraries/__tests__/__snapshots__/public-api-test.js.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/Libraries/Components/TextInput/TextInputNativeCommands.js b/packages/react-native/Libraries/Components/TextInput/TextInputNativeCommands.js index e64262ae37dea8..9da88998c47c84 100644 --- a/packages/react-native/Libraries/Components/TextInput/TextInputNativeCommands.js +++ b/packages/react-native/Libraries/Components/TextInput/TextInputNativeCommands.js @@ -24,6 +24,6 @@ export interface TextInputNativeCommands { ) => void; } -const supportedCommands = ['focus', 'blur', 'setTextAndSelection']; +const supportedCommands = ['focus', 'blur', 'setTextAndSelection'] as string[]; export default supportedCommands; diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index 5ff675086e6788..0ea5785fd31469 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -3515,7 +3515,7 @@ exports[`public API should not change unintentionally Libraries/Components/TextI end: Int32 ) => void; } -declare const supportedCommands: $FlowFixMe; +declare const supportedCommands: string[]; declare export default typeof supportedCommands; " `;