From 571b688fe2c1eabf7e7b0c05db870ef47a072dc0 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Fri, 8 Nov 2024 13:05:28 +0000 Subject: [PATCH] Remove comment syntax from ReactNativeTypes --- packages/react-native-renderer/src/ReactNativeTypes.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/react-native-renderer/src/ReactNativeTypes.js b/packages/react-native-renderer/src/ReactNativeTypes.js index 80d9df6f84c5c..23fb193dd920c 100644 --- a/packages/react-native-renderer/src/ReactNativeTypes.js +++ b/packages/react-native-renderer/src/ReactNativeTypes.js @@ -132,9 +132,10 @@ declare const ensureNativeMethodsAreSynced: NativeMethods; (ensureNativeMethodsAreSynced: INativeMethods); export type HostInstance = NativeMethods; -/*:: -export type HostComponent = component(ref: React$RefSetter, ...Config); -*/ +export type HostComponent = component( + ref: React$RefSetter, + ...Config +); type InspectorDataProps = $ReadOnly<{ [propName: string]: string, @@ -205,9 +206,7 @@ export type ReactNativeType = { componentOrHandle: ?(ElementRef | number), ): ?number, isChildPublicInstance( - // eslint-disable-next-line no-undef parent: PublicInstance | HostComponent, - // eslint-disable-next-line no-undef child: PublicInstance | HostComponent, ): boolean, dispatchCommand(