mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
70a1e2b053
Summary: Now that D42097191 allows it, get rid of unused API in the related WebPerformance native modules (these were kept there only to pacify the backwards compatibility checks). Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D42037757 fbshipit-source-id: 5f5e7e76722cade9e730aba037f9e8ab51fc16d9
31 lines
807 B
JavaScript
31 lines
807 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict
|
|
* @format
|
|
*/
|
|
|
|
import type {TurboModule} from '../TurboModule/RCTExport';
|
|
|
|
import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';
|
|
|
|
export interface Spec extends TurboModule {
|
|
+mark: (name: string, startTime: number, duration: number) => void;
|
|
+clearMarks: (markName?: string) => void;
|
|
|
|
+measure: (
|
|
name: string,
|
|
startTime: number,
|
|
endTime: number,
|
|
duration?: number,
|
|
startMark?: string,
|
|
endMark?: string,
|
|
) => void;
|
|
+clearMeasures: (measureName?: string) => void;
|
|
}
|
|
|
|
export default (TurboModuleRegistry.get<Spec>('NativePerformanceCxx'): ?Spec);
|