Skip to content

Commit 1126bbb

Browse files
coadofacebook-github-bot
authored andcommitted
Add explicit type to supported commands in TextInputNativeCommands (#48688)
Summary: Pull Request resolved: #48688 Changelog: [General][Changed] - Added explicit type to supported commands in TextInputNativeCommands Reviewed By: cortinico Differential Revision: D68205568 fbshipit-source-id: 53501cdeaf4d790b36156b59f76686e8fef5cc5f
1 parent f36bfe5 commit 1126bbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-native/Libraries/Components/TextInput/TextInputNativeCommands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ export interface TextInputNativeCommands<T> {
2424
) => void;
2525
}
2626

27-
const supportedCommands = ['focus', 'blur', 'setTextAndSelection'];
27+
const supportedCommands = ['focus', 'blur', 'setTextAndSelection'] as string[];
2828

2929
export default supportedCommands;

packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3513,7 +3513,7 @@ exports[`public API should not change unintentionally Libraries/Components/TextI
35133513
end: Int32
35143514
) => void;
35153515
}
3516-
declare const supportedCommands: $FlowFixMe;
3516+
declare const supportedCommands: string[];
35173517
declare export default typeof supportedCommands;
35183518
"
35193519
`;

0 commit comments

Comments
 (0)