plane/web/store/project/index.ts

19 lines
520 B
TypeScript
Raw Normal View History

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