Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add explicit type to supported commands in TextInputNativeCommands
Browse files Browse the repository at this point in the history
Summary:
Changelog:
[General][Changed] - Added explicit type to supported commands in TextInputNativeCommands

Differential Revision: D68205568
coado authored and facebook-github-bot committed Jan 15, 2025
1 parent 559d070 commit e756822
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -24,6 +24,6 @@ export interface TextInputNativeCommands<T> {
) => void;
}

const supportedCommands = ['focus', 'blur', 'setTextAndSelection'];
const supportedCommands = ['focus', 'blur', 'setTextAndSelection'] as string[];

export default supportedCommands;
Original file line number Diff line number Diff line change
@@ -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;
"
`;

0 comments on commit e756822

Please sign in to comment.