mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add new npm-naming exemptions These packages fail the upcoming requirement that the types package version match a version that exists for the original package. In other words, these packages have a version, like 0.0 or 1.0, that their original package doesn't have. The "npm-naming" lint rule will soon prevent this, so these packages need to be exempt from this rule. * Restore some useful comments/formatting * Update required TS version for stale packages
25 lines
1.1 KiB
TypeScript
25 lines
1.1 KiB
TypeScript
// Type definitions for redux-sentry-middleware 0.1
|
|
// Project: https://github.com/vidit-sh/redux-sentry-middleware#readme, https://github.com/viditisonline/redux-sentry-middleware
|
|
// Definitions by: Jan Dolezel <https://github.com/dolezel>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import { Action, Middleware } from "redux";
|
|
import * as Sentry from "@sentry/browser";
|
|
|
|
declare namespace createSentryMiddleware {
|
|
interface Options<T> {
|
|
breadcrumbDataFromAction?: (action: Action) => any;
|
|
actionTransformer?: (action: Action) => any;
|
|
stateTransformer?: (state: T) => any;
|
|
breadcrumbCategory?: string;
|
|
filterBreadcrumbActions?: (action: Action) => boolean;
|
|
getUserContext?: (state: T) => Sentry.User;
|
|
getTags?: (state: T) => Sentry.Event['tags'];
|
|
}
|
|
}
|
|
|
|
// tslint:disable-next-line: no-unnecessary-generics
|
|
declare function createSentryMiddleware<T>(sentry: typeof Sentry, options?: createSentryMiddleware.Options<T>): Middleware;
|
|
export = createSentryMiddleware;
|