From 9a5c852aae9e024215b616f7cf0676ff3f378331 Mon Sep 17 00:00:00 2001 From: Joel Arvidsson Date: Thu, 23 Oct 2025 17:12:17 +0200 Subject: [PATCH] chore: drop flow in native spec --- ...ormanceManager.js => NativeRNPerformanceManager.ts} | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) rename packages/react-native-performance/src/{NativeRNPerformanceManager.js => NativeRNPerformanceManager.ts} (50%) diff --git a/packages/react-native-performance/src/NativeRNPerformanceManager.js b/packages/react-native-performance/src/NativeRNPerformanceManager.ts similarity index 50% rename from packages/react-native-performance/src/NativeRNPerformanceManager.js rename to packages/react-native-performance/src/NativeRNPerformanceManager.ts index 0a0033e..3cfe287 100644 --- a/packages/react-native-performance/src/NativeRNPerformanceManager.js +++ b/packages/react-native-performance/src/NativeRNPerformanceManager.ts @@ -1,14 +1,10 @@ -/** - * @flow - */ - import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport'; import { TurboModuleRegistry } from 'react-native'; export interface Spec extends TurboModule { // Events - +addListener: (eventName: string) => void; - +removeListeners: (count: number) => void; + addListener: (eventName: string) => void; + removeListeners: (count: number) => void; } -export default (TurboModuleRegistry.get('RNPerformanceManager'): ?Spec); +export default TurboModuleRegistry.get('RNPerformanceManager');