1.1.5 • Published 6 months ago

@types/raven-for-redux v1.1.5

Weekly downloads
7,070
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for raven-for-redux 1.1
// Project: https://github.com/captbaritone/raven-for-redux
// Definitions by: Daniel Chiu <https://github.com/chiubaka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

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

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

Credits

These definitions were written by Daniel Chiu.

1.1.5

6 months ago

1.1.4

7 months ago

1.1.3

8 months ago

1.1.2

3 years ago

1.1.1

6 years ago

1.1.0

6 years ago