Skip to content

Commit 3df4d93

Browse files
deniswzalmoxisus
authored andcommitted
Add trace options to TypeScript definition file (#624)
1 parent 8f524f2 commit 3df4d93

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

npm-package/index.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,15 @@ export interface EnhancerOptions {
154154
*/
155155
test?: boolean;
156156
};
157+
/**
158+
* Set to true or a stacktrace-returning function to record call stack traces for dispatched actions.
159+
* Defaults to false.
160+
*/
161+
trace?: boolean | (<A extends Action>(action: A) => string);
162+
/**
163+
* The maximum number of stack trace entries to record per action. Defaults to 10.
164+
*/
165+
traceLimit?: number;
157166
}
158167

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

0 commit comments

Comments
 (0)