Files
old-kitabcitab-frontend/kitabcitab/node_modules/next/dist/client/components/use-reducer-with-devtools.d.ts
2022-12-27 12:05:56 +01:00

15 lines
497 B
TypeScript

import type { reducer } from './reducer';
import type { ReducerAction, Dispatch } from 'react';
declare global {
interface Window {
__REDUX_DEVTOOLS_EXTENSION__: any;
}
}
declare function useReducerWithReduxDevtoolsImpl(fn: typeof reducer, initialState: ReturnType<typeof reducer>): [
ReturnType<typeof reducer>,
Dispatch<ReducerAction<typeof reducer>>,
() => void
];
export declare const useReducerWithReduxDevtools: typeof useReducerWithReduxDevtoolsImpl;
export {};