aboutsummaryrefslogtreecommitdiff
path: root/ui/src/frontend/debug.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/frontend/debug.ts')
-rw-r--r--ui/src/frontend/debug.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/frontend/debug.ts b/ui/src/frontend/debug.ts
index fae7a832f..7e9c9e523 100644
--- a/ui/src/frontend/debug.ts
+++ b/ui/src/frontend/debug.ts
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+import {produce} from 'immer';
import m from 'mithril';
import {Actions} from '../common/actions';
@@ -19,12 +20,14 @@ import {getSchema} from '../common/schema';
import {globals} from './globals';
+
declare global {
interface Window {
m: typeof m;
getSchema: typeof getSchema;
globals: typeof globals;
Actions: typeof Actions;
+ produce: typeof produce;
}
}
@@ -33,4 +36,5 @@ export function registerDebugGlobals() {
window.m = m;
window.globals = globals;
window.Actions = Actions;
+ window.produce = produce;
}