3.0.4 • Published 6 months ago

@types/redux-cablecar v3.0.4

Weekly downloads
127
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for redux-cablecar 3.0
// Project: https://github.com/ndhays/redux-cablecar#readme
// Definitions by: Christoph Flick <https://github.com/ChFlick>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0

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: Thu, 08 Jul 2021 22:41:51 GMT
  • Dependencies: @types/redux
  • Global values: none

Credits

These definitions were written by Christoph Flick.

3.0.4

6 months ago

3.0.3

7 months ago

3.0.2

8 months ago

3.0.1

3 years ago

3.0.0

5 years ago