Skip to content

Commit

Permalink
ref: Add JSDoc to exported enhancer
Browse files Browse the repository at this point in the history
  • Loading branch information
jennmueng committed Jul 24, 2020
1 parent 4c2895d commit 7ce0256
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react/src/redux.ts
Expand Up @@ -77,6 +77,11 @@ const defaultOptions: SentryEnhancerOptions = {
stateTransformer: state => state || null,
};

/**
* 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
*/
function createReduxEnhancer(enhancerOptions?: Partial<SentryEnhancerOptions>): StoreEnhancer {
const options = {
...defaultOptions,
Expand Down

0 comments on commit 7ce0256

Please sign in to comment.