import { HistoryNodeOptionEvent , nodeOptionEvent } from '@/store/history/types' ; import { DatasetInfo } from '@/store/dataset/types' ; import DataSource from '@/components/data-source/data-source' ; enum DataSourceEventType { SET_DATASET_INFO = 'setDatasetInfo' } export const setDatasetInfoEvent = ( node , datasetInfo , prevDatasetInfo ) : HistoryNodeOptionEvent => { return nodeOptionEvent ( DataSourceEventType . SET_DATASET_INFO , 'load dataset' , node , node . setDatasetInfo , datasetInfo , prevDatasetInfo ) ; } ;