1.0.6 • Published 6 months ago

@types/redux-mock-store v1.0.6

Weekly downloads
279,460
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/redux-mock-store

Summary

This package contains type definitions for Redux Mock Store (https://github.com/arnaudbenard/redux-mock-store).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-mock-store/v0.

index.d.ts

// Type definitions for Redux Mock Store 0.0.1
// Project: https://github.com/arnaudbenard/redux-mock-store
// Definitions by: Marian Palkus <https://github.com/MarianPalkus>, Cap3 <http://www.cap3.de>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import * as Redux from 'redux';

export interface MockStore<T> extends Redux.Store<T> {
    getActions(): any[];
    clearActions(): void;
}

export type MockStoreCreator<T = {}> = (state?: T) => MockStore<T>;

declare function createMockStore<T>(middlewares?: Redux.Middleware[]): MockStoreCreator<T>;

export default createMockStore;

Additional Details

  • Last updated: Fri, 09 Jul 2021 02:32:41 GMT
  • Dependencies: @types/redux
  • Global values: none

Credits

These definitions were written by Marian Palkus, and Cap3.