mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
f36bfe5dfa
commit
1126bbb149
+1
-1
@@ -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;
|
||||
"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user