chore(mobx): refactor into interfaces

This commit is contained in:
Paul 2021-12-11 14:36:26 +00:00
parent a8491267a4
commit 2b55770ecc
7 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@ import { makeAutoObservable, ObservableMap } from "mobx";
import { Session } from "revolt-api/types/Auth"; import { Session } from "revolt-api/types/Auth";
import { Nullable } from "revolt.js/dist/util/null"; import { Nullable } from "revolt.js/dist/util/null";
import Persistent from "../Persistent"; import Persistent from "../interfaces/Persistent";
interface Data { interface Data {
sessions: Record<string, Session>; sessions: Record<string, Session>;

View file

@ -1,6 +1,6 @@
import { action, computed, makeAutoObservable, ObservableMap } from "mobx"; import { action, computed, makeAutoObservable, ObservableMap } from "mobx";
import Persistent from "../Persistent"; import Persistent from "../interfaces/Persistent";
interface Data { interface Data {
drafts: Record<string, string>; drafts: Record<string, string>;

View file

@ -1,6 +1,6 @@
import { action, computed, makeAutoObservable, ObservableSet } from "mobx"; import { action, computed, makeAutoObservable, ObservableSet } from "mobx";
import Persistent from "../Persistent"; import Persistent from "../interfaces/Persistent";
/** /**
* Union type of available experiments. * Union type of available experiments.

View file

@ -1,6 +1,6 @@
import { action, computed, makeAutoObservable, ObservableMap } from "mobx"; import { action, computed, makeAutoObservable, ObservableMap } from "mobx";
import Persistent from "../Persistent"; import Persistent from "../interfaces/Persistent";
interface Data { interface Data {
lastSection?: "home" | "server"; lastSection?: "home" | "server";

View file

@ -2,7 +2,7 @@ import { action, computed, makeAutoObservable } from "mobx";
import { Language, Languages } from "../../context/Locale"; import { Language, Languages } from "../../context/Locale";
import Persistent from "../Persistent"; import Persistent from "../interfaces/Persistent";
interface Data { interface Data {
lang: Language; lang: Language;

View file

@ -1,7 +1,7 @@
import { action, computed, makeAutoObservable, ObservableMap } from "mobx"; import { action, computed, makeAutoObservable, ObservableMap } from "mobx";
import { Channel } from "revolt-api/types/Channels"; import { Channel } from "revolt-api/types/Channels";
import Persistent from "../Persistent"; import Persistent from "../interfaces/Persistent";
/** /**
* Possible notification states. * Possible notification states.