import { makeAutoObservable } from 'mobx' ; import RootStore from '@/store/root' ; import { rootStore } from '../index' ; export class TodoStore { rootStore : RootStore ; constructor ( rootStore ) { this . rootStore = rootStore ; makeAutoObservable ( this ) ; } }