8000 Expose state type on the SentryEnhancerOptions interface level (#3014) · phstc/sentry-javascript@2c18922 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c18922

Browse filesBrowse files
authored
Expose state type on the SentryEnhancerOptions interface level (getsentry#3014)
* Expose state type on the SentryEnhancerOptions interface level
1 parent 6395a30 commit 2c18922

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react/src/redux.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ type StoreEnhancerStoreCreator<Ext = Record<string, unknown>, StateExt = never>
4747
preloadedState?: PreloadedState<S>,
4848
) => Store<ExtendState<S, StateExt>, A, StateExt, Ext> & Ext;
4949

50-
export interface SentryEnhancerOptions {
50+
export interface SentryEnhancerOptions<S = any> {
5151
/**
5252
* Transforms the state before attaching it to an event.
5353
* Use this to remove any private data before sending it to Sentry.
5454
* Return null to not attach the state.
5555
*/
56-
stateTransformer<S>(state: S | undefined): (S & any) | null;
56+
stateTransformer(state: S | undefined): (S & any) | null;
5757
/**
5858
* Transforms the action before sending it as a breadcrumb.
5959
* Use this to remove any private data before sending it to Sentry.
@@ -63,7 +63,7 @@ export interface SentryEnhancerOptions {
6363
/**
6464
* Called on every state update, configure the Sentry Scope with the redux state.
6565
*/
66-
configureScopeWithState?<S>(scope: Scope, state: S): void;
66+
configureScopeWithState?(scope: Scope, state: S): void;
6767
}
6868

6969
const ACTION_BREADCRUMB_CATEGORY = 'redux.action';

0 commit comments

Comments
 (0)
0