Add explicit type to supported commands in TextInputNativeCommands (#48688)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/48688

Changelog:
[General][Changed] - Added explicit type to supported commands in TextInputNativeCommands

Reviewed By: cortinico

Differential Revision: D68205568

fbshipit-source-id: 53501cdeaf4d790b36156b59f76686e8fef5cc5f
This commit is contained in:
Dawid Małecki
2025-01-15 08:15:37 -08:00
committed by Facebook GitHub Bot
parent f36bfe5dfa
commit 1126bbb149
2 changed files with 2 additions and 2 deletions
@@ -24,6 +24,6 @@ export interface TextInputNativeCommands<T> {
) => void;
}
const supportedCommands = ['focus', 'blur', 'setTextAndSelection'];
const supportedCommands = ['focus', 'blur', 'setTextAndSelection'] as string[];
export default supportedCommands;
@@ -3513,7 +3513,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;
"
`;