Files
klz-cables.com/.pnpm-store/v10/files/7d/c34a018546b3992a4e297843da0c1b6b9fec458c39d0340b1a7f6a91ebda4a060637b3045440de2a3f77120cafefecab4d05ad9204ef6ac634ccc0143f96f9
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

38 lines
1.3 KiB
Plaintext

import type { Scope } from '@sentry/core';
interface Action<T = any> {
type: T;
}
interface AnyAction extends Action {
[extraProps: string]: any;
}
export interface SentryEnhancerOptions<S = any> {
/**
* Redux state in attachments or not.
* @default true
*/
attachReduxState?: boolean;
/**
* Transforms the state before attaching it to an event.
* Use this to remove any private data before sending it to Sentry.
* Return null to not attach the state.
*/
stateTransformer(state: S | undefined): (S & any) | null;
/**
* Transforms the action before sending it as a breadcrumb.
* Use this to remove any private data before sending it to Sentry.
* Return null to not send the breadcrumb.
*/
actionTransformer(action: AnyAction): AnyAction | null;
/**
* Called on every state update, configure the Sentry Scope with the redux state.
*/
configureScopeWithState?(scope: Scope, state: S): void;
}
/**
* Creates an enhancer that would be passed to Redux's createStore to log actions and the latest state to Sentry.
*
* @param enhancerOptions Options to pass to the enhancer
*/
declare function createReduxEnhancer(enhancerOptions?: Partial<SentryEnhancerOptions>): any;
export { createReduxEnhancer };
//# sourceMappingURL=redux.d.ts.map