mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-26 09:00:57 -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 { 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>;
|
||||||
|
|
|
@ -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>;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue