Skip to content

Commit 7ce0256

Browse files
committed
ref: Add JSDoc to exported enhancer
1 parent 4c2895d commit 7ce0256

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/react/src/redux.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ const defaultOptions: SentryEnhancerOptions = {
7777
stateTransformer: state => state || null,
7878
};
7979

80+
/**
81+
* Creates an enhancer that would be passed to Redux's createStore to log actions and the latest state to Sentry.
82+
*
83+
* @param enhancerOptions Options to pass to the enhancer
84+
*/
8085
function createReduxEnhancer(enhancerOptions?: Partial<SentryEnhancerOptions>): StoreEnhancer {
8186
const options = {
8287
...defaultOptions,

0 commit comments

Comments
 (0)