Skip to content

Commit

Permalink
Add trace options to TypeScript definition file (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisw authored and zalmoxisus committed Jan 8, 2019
1 parent 8f524f2 commit 3df4d93
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions npm-package/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,15 @@ export interface EnhancerOptions {
*/
test?: boolean;
};
/**
* Set to true or a stacktrace-returning function to record call stack traces for dispatched actions.
* Defaults to false.
*/
trace?: boolean | (<A extends Action>(action: A) => string);
/**
* The maximum number of stack trace entries to record per action. Defaults to 10.
*/
traceLimit?: number;
}

export function composeWithDevTools<StoreExt, StateExt>(...funcs: Array<StoreEnhancer<StoreExt>>): StoreEnhancer<StoreExt>;
Expand Down

0 comments on commit 3df4d93

Please sign in to comment.