/* eslint-disable @typescript-eslint/no-explicit-any */ import { observable, makeObservable, action } from 'mobx' export interface TLSettingsProps { mode: 'light' | 'dark' showGrid: boolean } export class TLSettings implements TLSettingsProps { constructor() { makeObservable(this) } @observable mode: 'dark' | 'light' = 'light' @observable showGrid = true @action update(props: Partial): void { Object.assign(this, props) } }