From 3df4d939b548b8ec891c73dabe2ffdd5dd2a8119 Mon Sep 17 00:00:00 2001 From: Denis Washington Date: Tue, 8 Jan 2019 13:32:36 +0100 Subject: [PATCH] Add trace options to TypeScript definition file (#624) --- npm-package/index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/npm-package/index.d.ts b/npm-package/index.d.ts index abc68df7..738b8706 100644 --- a/npm-package/index.d.ts +++ b/npm-package/index.d.ts @@ -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 | ((action: A) => string); + /** + * The maximum number of stack trace entries to record per action. Defaults to 10. + */ + traceLimit?: number; } export function composeWithDevTools(...funcs: Array>): StoreEnhancer;