import { action , observable } from 'mobx' ; import { TableOfContents } from '../domain/Referee' ; export default class DocsStore { @ observable tableOfContents : TableOfContents | null = null ; @ observable content : string | null = null ; @ action . bound updateToc ( tableOfContents ) { this . tableOfContents = tableOfContents ; } @ action . bound updateContent ( content ) { this . content = content ; } }