Skip to content

Commit

Permalink
Improve type definition for FabricUIManager
Browse files Browse the repository at this point in the history
Summary:
This migrates FabricUIManager to Flow strict.

Changelog: [internal]

Differential Revision: D43773032

fbshipit-source-id: b7a82f93e0fd163b1fae972dc0503d4ac8b80dfc
  • Loading branch information
rubennorte authored and facebook-github-bot committed Mar 10, 2023
1 parent e68f513 commit 801b005
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Libraries/ReactNative/FabricUIManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @flow strict
* @format
*/

Expand All @@ -19,7 +19,7 @@ import type {
import type {RootTag} from '../Types/RootTagTypes';

// TODO: type these properly.
type Node = {...};
export opaque type Node = {...};
type NodeSet = Array<Node>;
type NodeProps = {...};
type InstanceHandle = {...};
Expand Down Expand Up @@ -53,9 +53,7 @@ export type Spec = {|
+configureNextLayoutAnimation: (
config: LayoutAnimationConfig,
callback: () => void, // check what is returned here
// This error isn't currently called anywhere, so the `error` object is really not defined
// $FlowFixMe[unclear-type]
errorCallback: (error: Object) => void,
errorCallback: () => void,
) => void,
+sendAccessibilityEvent: (node: Node, eventType: string) => void,
+findShadowNodeByTag_DEPRECATED: (reactTag: number) => ?Node,
Expand Down

0 comments on commit 801b005

Please sign in to comment.