Skip to content

Commit

Permalink
Explicitly type UIManagerProperties (#48587)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #48587

Changelog: [Internal]

Reviewed By: cortinico, huntie

Differential Revision: D67977469

fbshipit-source-id: 0f866aeaa3d19ba2bc01d2e4685487c9b1a3329f
  • Loading branch information
j-piasecki authored and facebook-github-bot committed Jan 10, 2025
1 parent 071506f commit 1051bd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* accessed. Once UIManager property accesses for view managers has been fully
* deprecated, this file will also be removed.
*/
module.exports = [
const UIManagerProperties: $ReadOnlyArray<string> = [
'clearJSResponder',
'configureNextLayoutAnimation',
'createView',
Expand Down Expand Up @@ -59,3 +59,5 @@ module.exports = [
'genericDirectEventTypes',
'lazilyLoadView',
];

module.exports = UIManagerProperties;
Original file line number Diff line number Diff line change
Expand Up @@ -7717,7 +7717,8 @@ declare module.exports: UIManager;
`;

exports[`public API should not change unintentionally Libraries/ReactNative/UIManagerProperties.js 1`] = `
"declare module.exports: $FlowFixMe;
"declare const UIManagerProperties: $ReadOnlyArray<string>;
declare module.exports: UIManagerProperties;
"
`;

Expand Down

0 comments on commit 1051bd8

Please sign in to comment.