import omit from 'lodash.omit' ; import clone from 'lodash.clonedeep' ; import type { PreloadWindow } from '../preload' ; import { MainIpcChannel } from '../interface' ; import type { Project , ProjectStd } from '../models/project.interface' ; declare const window ; const { sendMainIpc } = window . derealize ; export const OmitStoreProp = [ 'isOpened' , 'isFront' , 'isEditing' , 'status' , 'stage' , 'changes' , 'runningOutput' , 'installOutput' , 'config' , 'tailwindConfig' , 'tailwindVersion' , 'elements' , 'view' , 'viewHistory' , 'startloading' , 'jitClassName' , ] ; const storeProject = ( projects ) => { const omitProjects = projects . map ( ( p ) => omit ( p , OmitStoreProp ) ) ; sendMainIpc ( MainIpcChannel . SetStore , { projects : clone ( omitProjects ) } ) ; } ; export default storeProject ;