# @types/redux-cablecar

> TypeScript definitions for redux-cablecar

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

## Install

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

## 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 | 3.0.4 |
| Published | 2023-11-07 |
| First published | 2019-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 3.0.4 (latest) — 2023-11-07
- 3.0.1 (ts3.6) — 2021-07-08
- 3.0.0 (ts3.0) — 2019-10-10
- 3.0.3 — 2023-10-18
- 3.0.2 — 2023-09-27

## README

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

export interface Options {
    connected?: (() => void) | undefined;
    disconnected?: (() => void) | undefined;
    params?: object | undefined;
    prefix?: string | undefined;
    optimisticOnFail?: boolean | undefined;
}

export interface CableCar {
    changeChannel: (channel: string, options?: Options) => void;
    getChannel: () => string;
    getParams: () => object;
    perform: (method: string, payload?: any) => void;
    send: (action: string) => void;
}

declare var middleware: Middleware & {
    connect: (store: Store, channel: string, options?: Options) => CableCar;
    setProvider: (actionCableProvider: string) => void;
};

export default middleware;

````

### 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 [Christoph Flick](https://github.com/ChFlick).

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