mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d7a5e3e215
Summary: Part of #24875. ## Changelog [General] [Added] - add TM spec for JSDevSupport Pull Request resolved: https://github.com/facebook/react-native/pull/24905 Reviewed By: fkgozali Differential Revision: D15391754 Pulled By: rickhanlonii fbshipit-source-id: afca6ce3d6bcfaaf097e13c148496cdd1f062465
26 lines
643 B
JavaScript
26 lines
643 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 {
|
|
+getConstants: () => {|
|
|
ERROR_CODE_EXCEPTION: number,
|
|
ERROR_CODE_VIEW_NOT_FOUND: number,
|
|
|};
|
|
+onSuccess: (data: Object) => void;
|
|
+onFailure: (errorCode: number, error: string) => void;
|
|
}
|
|
|
|
export default TurboModuleRegistry.get<Spec>('JSDevSupport');
|