mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
56c3852384
Summary: part of #24875 ## Changelog [General] [Added] - add TM spec for HeadlessJsTaskSupport Pull Request resolved: https://github.com/facebook/react-native/pull/24907 Reviewed By: RSNara Differential Revision: D15425720 Pulled By: fkgozali fbshipit-source-id: 2e904f265a68066918bae4f6f95494ad77654598
21 lines
500 B
JavaScript
21 lines
500 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import type {TurboModule} from 'RCTExport';
|
|
import * as TurboModuleRegistry from 'TurboModuleRegistry';
|
|
|
|
export interface Spec extends TurboModule {
|
|
+notifyTaskFinished: (taskId: number) => void;
|
|
}
|
|
|
|
export default TurboModuleRegistry.get<Spec>('HeadlessJsTaskSupport');
|