mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-23 22:22:07 -05:00
chore(mobx): refactor into interfaces
This commit is contained in:
parent
a8491267a4
commit
2b55770ecc
7 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@ import { makeAutoObservable, ObservableMap } from "mobx";
|
|||
import { Session } from "revolt-api/types/Auth";
|
||||
import { Nullable } from "revolt.js/dist/util/null";
|
||||
|
||||
import Persistent from "../Persistent";
|
||||
import Persistent from "../interfaces/Persistent";
|
||||
|
||||
interface Data {
|
||||
sessions: Record<string, Session>;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { action, computed, makeAutoObservable, ObservableMap } from "mobx";
|
||||
|
||||
import Persistent from "../Persistent";
|
||||
import Persistent from "../interfaces/Persistent";
|
||||
|
||||
interface Data {
|
||||
drafts: Record<string, string>;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { action, computed, makeAutoObservable, ObservableSet } from "mobx";
|
||||
|
||||
import Persistent from "../Persistent";
|
||||
import Persistent from "../interfaces/Persistent";
|
||||
|
||||
/**
|
||||
* Union type of available experiments.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { action, computed, makeAutoObservable, ObservableMap } from "mobx";
|
||||
|
||||
import Persistent from "../Persistent";
|
||||
import Persistent from "../interfaces/Persistent";
|
||||
|
||||
interface Data {
|
||||
lastSection?: "home" | "server";
|
||||
|
|
|
@ -2,7 +2,7 @@ import { action, computed, makeAutoObservable } from "mobx";
|
|||
|
||||
import { Language, Languages } from "../../context/Locale";
|
||||
|
||||
import Persistent from "../Persistent";
|
||||
import Persistent from "../interfaces/Persistent";
|
||||
|
||||
interface Data {
|
||||
lang: Language;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { action, computed, makeAutoObservable, ObservableMap } from "mobx";
|
||||
import { Channel } from "revolt-api/types/Channels";
|
||||
|
||||
import Persistent from "../Persistent";
|
||||
import Persistent from "../interfaces/Persistent";
|
||||
|
||||
/**
|
||||
* Possible notification states.
|
||||
|
|
Loading…
Reference in a new issue