Skip to content

Commit 2c863c9

Browse files
chore: fix onDataChange callback object type
1 parent 63e8fe9 commit 2c863c9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/events/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { NMRiumData, NMRiumDataReturn } from 'nmrium';
1+
import { SerializedNmriumState } from 'nmr-load-save';
2+
import { NMRiumData } from 'nmrium';
23
import { BlobObject } from 'nmrium/lib/component/utility/export';
34

45
type EventType =
@@ -33,7 +34,7 @@ type ActionResponse = {
3334
};
3435

3536
type EventData<T extends EventType> = T extends 'data-change'
36-
? NMRiumDataReturn
37+
? SerializedNmriumState
3738
: T extends 'load'
3839
? LoadData
3940
: T extends 'action-request'

0 commit comments

Comments
 (0)