1.1.5 • Published 6 months ago
@types/raven-for-redux v1.1.5
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
- Last updated: Thu, 08 Jul 2021 20:20:17 GMT
- Dependencies: @types/redux, @types/raven-js
- Global values: none
Credits
These definitions were written by Daniel Chiu.