@types/raven-for-redux
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

Installation

npm install --save @types/raven-for-redux

Summary

This package contains type definitions for raven-for-redux (https://github.com/captbaritone/raven-for-redux).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raven-for-redux.

index.d.ts

import * as Raven from "raven-js";
import { Action, Middleware } from "redux";

export = createRavenMiddleware;

declare function createRavenMiddleware(
    raven: Raven.RavenStatic,
    options?: createRavenMiddleware.RavenMiddlewareOptions<any>,
): Middleware;

declare namespace createRavenMiddleware {
    interface RavenUserContext {
        id?: string | undefined;
        username?: string | undefined;
        email?: string | undefined;
    }

    interface RavenMiddlewareOptions<T> {
        breadcrumbDataFromAction?: ((action: Action) => any) | undefined;
        actionTransformer?: ((action: Action) => Action) | undefined;
        stateTransformer?: ((state: T) => T) | undefined;
        breadcrumbCategory?: string | undefined;
        filterBreadcrumbActions?: ((action: Action) => boolean) | undefined;
        getUserContext?: ((state: T) => RavenUserContext) | undefined;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: raven-js, redux

Credits

These definitions were written by Daniel Chiu.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/raven-for-redux

Weekly Downloads

812

Version

1.1.5

License

MIT

Unpacked Size

4.54 kB

Total Files

5

Last publish

Collaborators

  • types