|
9 | 9 |
|
10 | 10 | /* eslint-disable */
|
11 | 11 |
|
12 |
| -import type { |
13 |
| - MeasureOnSuccessCallback, |
14 |
| - MeasureInWindowOnSuccessCallback, |
15 |
| - MeasureLayoutOnSuccessCallback, |
16 |
| - ReactNativeBaseComponentViewConfig, |
17 |
| - ViewConfigGetter, |
18 |
| -} from 'react-native-renderer/src/ReactNativeTypes'; |
19 |
| -import type {RNTopLevelEventType} from 'react-native-renderer/src/legacy-events/TopLevelEventTypes'; |
20 |
| -import type {CapturedError} from 'react-reconciler/src/ReactCapturedValue'; |
21 |
| -import type {Fiber} from 'react-reconciler/src/ReactInternalTypes'; |
| 12 | +// libdefs cannot actually import. These are supposed to be the types imported |
| 13 | +// from 'react-native-renderer/src/ReactNativeTypes' |
| 14 | +type __MeasureOnSuccessCallback = any; |
| 15 | +type __MeasureInWindowOnSuccessCallback = any; |
| 16 | +type __MeasureLayoutOnSuccessCallback = any; |
| 17 | +type __ReactNativeBaseComponentViewConfig = any; |
| 18 | +type __ViewConfigGetter = any; |
| 19 | + |
| 20 | +// libdefs cannot actually import. This is supposed to be the type imported |
| 21 | +// from 'react-native-renderer/src/legacy-events/TopLevelEventTypes'; |
| 22 | +type __RNTopLevelEventType = any; |
| 23 | + |
| 24 | +// libdefs cannot actually import. This is supposed to be the type imported |
| 25 | +// from 'react-reconciler/src/ReactCapturedValue' |
| 26 | +type __CapturedError = any; |
22 | 27 |
|
23 | 28 | type DeepDifferOptions = {+unsafelyIgnoreFunctions?: boolean};
|
24 | 29 | type RawEventEmitterEvent = $ReadOnly<{
|
@@ -53,7 +58,7 @@ declare module 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface'
|
53 | 58 | ...
|
54 | 59 | };
|
55 | 60 | declare export var ReactFiberErrorDialog: {
|
56 |
| - showErrorDialog: (error: CapturedError) => boolean, |
| 61 | + showErrorDialog: (error: __CapturedError) => boolean, |
57 | 62 | ...
|
58 | 63 | };
|
59 | 64 | declare export var Platform: {OS: string, ...};
|
@@ -130,8 +135,8 @@ declare module 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface'
|
130 | 135 | customDirectEventTypes: Object,
|
131 | 136 | eventTypes: Object,
|
132 | 137 |
|
133 |
| - register: (name: string, callback: ViewConfigGetter) => string, |
134 |
| - get: (name: string) => ReactNativeBaseComponentViewConfig, |
| 138 | + register: (name: string, callback: __ViewConfigGetter) => string, |
| 139 | + get: (name: string) => __ReactNativeBaseComponentViewConfig, |
135 | 140 | ...
|
136 | 141 | };
|
137 | 142 | declare export var RawEventEmitter: {
|
@@ -166,30 +171,30 @@ declare var nativeFabricUIManager: {
|
166 | 171 | registerEventHandler: (
|
167 | 172 | callback: (
|
168 | 173 | eventTarget: null | Object,
|
169 |
| - type: RNTopLevelEventType, |
| 174 | + type: __RNTopLevelEventType, |
170 | 175 | payload: Object,
|
171 | 176 | ) => void,
|
172 | 177 | ) => void,
|
173 | 178 |
|
174 | 179 | dispatchCommand: (node: Object, command: string, args: Array<any>) => void,
|
175 | 180 | sendAccessibilityEvent: (node: Object, eventTypeName: string) => void,
|
176 | 181 |
|
177 |
| - measure: (node: Node, callback: MeasureOnSuccessCallback) => void, |
| 182 | + measure: (node: Node, callback: __MeasureOnSuccessCallback) => void, |
178 | 183 | measureInWindow: (
|
179 | 184 | node: Node,
|
180 |
| - callback: MeasureInWindowOnSuccessCallback, |
| 185 | + callback: __MeasureInWindowOnSuccessCallback, |
181 | 186 | ) => void,
|
182 | 187 | measureLayout: (
|
183 | 188 | node: Node,
|
184 | 189 | relativeNode: Node,
|
185 | 190 | onFail: () => void,
|
186 |
| - onSuccess: MeasureLayoutOnSuccessCallback, |
| 191 | + onSuccess: __MeasureLayoutOnSuccessCallback, |
187 | 192 | ) => void,
|
188 | 193 | findNodeAtPoint: (
|
189 | 194 | node: Node,
|
190 | 195 | locationX: number,
|
191 | 196 | locationY: number,
|
192 |
| - callback: (Fiber) => void, |
| 197 | + callback: (Object) => void, |
193 | 198 | ) => void,
|
194 | 199 | setIsJSResponder: (
|
195 | 200 | node: Node,
|
|
0 commit comments