# @types/redux-injectable-store

> TypeScript definitions for redux-injectable-store

Latest version **1.1.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/redux-injectable-store
pnpm add @types/redux-injectable-store
yarn add @types/redux-injectable-store
bun add @types/redux-injectable-store
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2023-11-07 |
| First published | 2017-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/redux-injectable-store
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-injectable-store
- npm.io page: https://npm.io/package/@types/redux-injectable-store

## Dependencies (1)

- [redux](https://npm.io/package/redux.md) ^3.6.0

## Recent versions

- 1.1.3 (latest) — 2023-11-07
- 1.1.0 (ts3.5) — 2021-03-07
- 1.0.0 (ts2.0) — 2017-12-29
- 1.1.2 — 2023-10-18
- 1.1.1 — 2023-09-27

## README

# Installation
> `npm install --save @types/redux-injectable-store`

# Summary
This package contains type definitions for redux-injectable-store (https://github.com/lelandrichardson/redux-injectable-store#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-injectable-store.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-injectable-store/index.d.ts)
````ts
import { Reducer, ReducersMapObject, Store, StoreEnhancer } from "redux";

/**
 * An `InjectableStore` allows reducers to "inject" themselves into the store
 * at any time, for use with bundle splitting, large apps, and SPAs
 * @template S State object type.
 */
export interface InjectableStore<S> extends Store<S> {
    inject: (namespace: string, reducer: Reducer<S>, force?: boolean) => void;
    injectAll: (reducers: ReducersMapObject, force?: boolean) => void;
    clearReducers: () => void;
}

export type WrapReducer<S> = (reducer: Reducer<S>) => Reducer<S>;

/**
 * The `createInjectableStore` API follows the same API as Redux's
 * `createStore`, but with the first argument (`reducer`) missing,
 * and an optional additional last argument, `wrapReducer`.
 *
 * @template S State object type.
 */
export interface InjectableStoreCreator {
    <S>(
        preloadedState?: S,
        enhancer?: StoreEnhancer<S>,
        wrapReducer?: WrapReducer<S>,
    ): InjectableStore<S>;
}

export const createInjectableStore: InjectableStoreCreator;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [redux](https://npmjs.com/package/redux)

# Credits
These definitions were written by [Daniel Perez Alvarez](https://github.com/unindented).

---
_Source: https://npm.io/package/@types/redux-injectable-store · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
