Skip to content

Commit 3ebf2f1

Browse files
committed
Fix json patch
1 parent 6ca3028 commit 3ebf2f1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/core/src/provenance/trrack.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
import { applyPatch, compare, deepClone, Operation } from 'fast-json-patch';
2+
import jsonPatch from 'fast-json-patch';
3+
import type { Operation } from 'fast-json-patch';
34
import { RecordActionArgs, Trrack, TrrackTreeNode } from './types';
45
import { PayloadAction } from '../action';
56

@@ -24,6 +25,8 @@ import {
2425
import { ConfigureTrrackOptions } from './trrack-config-opts';
2526
import { TrrackEvents } from './trrack-events';
2627

28+
const { applyPatch, compare, deepClone } = jsonPatch;
29+
2730
function getState<State, Event extends string>(
2831
node: ProvenanceNode<State, Event>,
2932
nodes: Nodes<State, Event>

0 commit comments

Comments
 (0)