UNPKG

react-native-onyx

Version:

State management for React Native

20 lines (19 loc) 716 B
import type { IDevTools, DevtoolsConnection } from './DevTools/types'; /** * Initializes DevTools with the given enabled flag */ declare function initDevTools(enabled: boolean): void; /** * Gets the current DevTools instance (for testing purposes only) * @private */ declare function getDevToolsInstance(): IDevTools; /** * Export a default object that delegates to the current devToolsInstance * This allows the instance to be swapped out while keeping the same import signature */ declare const DevTools: IDevTools; export default DevTools; export { initDevTools, getDevToolsInstance }; export type { DevtoolsConnection, IDevTools }; export type { default as RealDevTools } from './DevTools/RealDevTools';