We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ca3028 commit 3ebf2f1Copy full SHA for 3ebf2f1
1 file changed
packages/core/src/provenance/trrack.ts
@@ -1,5 +1,6 @@
1
/* eslint-disable @typescript-eslint/no-explicit-any */
2
-import { applyPatch, compare, deepClone, Operation } from 'fast-json-patch';
+import jsonPatch from 'fast-json-patch';
3
+import type { Operation } from 'fast-json-patch';
4
import { RecordActionArgs, Trrack, TrrackTreeNode } from './types';
5
import { PayloadAction } from '../action';
6
@@ -24,6 +25,8 @@ import {
24
25
import { ConfigureTrrackOptions } from './trrack-config-opts';
26
import { TrrackEvents } from './trrack-events';
27
28
+const { applyPatch, compare, deepClone } = jsonPatch;
29
+
30
function getState<State, Event extends string>(
31
node: ProvenanceNode<State, Event>,
32
nodes: Nodes<State, Event>
0 commit comments