Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-mock-store

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-mock-store - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

43

index.d.ts

@@ -1,29 +0,24 @@

declare module '~redux-mock-store/lib' {
import * as Redux from 'redux'
// Type definitions for Redux Mock Store v1.0.2
// Project: https://github.com/arnaudbenard/redux-mock-store
// Definitions by: Braulio Díez <https://github.com/brauliodiez/>>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
function createMockStore<T>(middlewares?: Redux.Middleware[]): createMockStore.mockStore<T>
// How to import it:
// import configureStore = require('redux-mock-store');
// Usage:
// const mockStore = configureStore();
namespace createMockStore {
type mockStore<T> = (state?: T) => IStore<T>;
declare module "redux-mock-store" {
import {Store} from 'redux';
type IStore<T> = {
dispatch(any): any
getState(): T
getActions(): Object[]
clearActions(): void
subscribe(): Function
}
}
interface MockStore extends Store {
getState(): any;
getActions(): Array<any>;
dispatch(action: any): any;
clearActions(): void;
subscribe(): any;
}
export = createMockStore
function configureStore(...args: any[]) : (...args: any[]) => MockStore;
export = configureStore;
}
declare module 'redux-mock-store/lib' {
import main = require('~redux-mock-store/lib')
export = main
}
declare module 'redux-mock-store' {
import main = require('~redux-mock-store/lib')
export = main
}
{
"name": "redux-mock-store",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc