plane/web/store/project/index.ts
2023-12-14 17:26:16 +05:30

19 lines
520 B
TypeScript

import { IProjectStore, ProjectStore } from "./project.store";
import { IProjectPublishStore, ProjectPublishStore } from "./project-publish.store";
import { RootStore } from "store/root.store";
export interface IProjectRootStore {
project: IProjectStore;
publish: IProjectPublishStore;
}
export class ProjectRootStore {
project: IProjectStore;
publish: IProjectPublishStore;
constructor(_root: RootStore) {
this.project = new ProjectStore(_root);
this.publish = new ProjectPublishStore(this);
}
}