diff options
Diffstat (limited to 'src/stores/lib')
-rw-r--r-- | src/stores/lib/CachedRequest.ts | 2 | ||||
-rw-r--r-- | src/stores/lib/Reaction.ts | 2 | ||||
-rw-r--r-- | src/stores/lib/Request.ts | 2 | ||||
-rw-r--r-- | src/stores/lib/TypedStore.ts | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/stores/lib/CachedRequest.ts b/src/stores/lib/CachedRequest.ts index b24336fe6..3b15fcf3f 100644 --- a/src/stores/lib/CachedRequest.ts +++ b/src/stores/lib/CachedRequest.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { action } from 'mobx'; | ||
2 | import { isEqual } from 'lodash'; | 1 | import { isEqual } from 'lodash'; |
2 | import { action } from 'mobx'; | ||
3 | import Request from './Request'; | 3 | import Request from './Request'; |
4 | 4 | ||
5 | export default class CachedRequest extends Request { | 5 | export default class CachedRequest extends Request { |
diff --git a/src/stores/lib/Reaction.ts b/src/stores/lib/Reaction.ts index 3966c8073..d418d8db8 100644 --- a/src/stores/lib/Reaction.ts +++ b/src/stores/lib/Reaction.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { autorun, IReactionDisposer, IReactionPublic } from 'mobx'; | 1 | import { type IReactionDisposer, type IReactionPublic, autorun } from 'mobx'; |
2 | 2 | ||
3 | export default class Reaction { | 3 | export default class Reaction { |
4 | public reaction: (r: IReactionPublic) => any; | 4 | public reaction: (r: IReactionPublic) => any; |
diff --git a/src/stores/lib/Request.ts b/src/stores/lib/Request.ts index 587af87d7..e7739bba1 100644 --- a/src/stores/lib/Request.ts +++ b/src/stores/lib/Request.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { observable, action, computed, makeObservable } from 'mobx'; | 1 | import { action, computed, makeObservable, observable } from 'mobx'; |
2 | 2 | ||
3 | // eslint-disable-next-line no-use-before-define | 3 | // eslint-disable-next-line no-use-before-define |
4 | type Hook = (request: Request) => void; | 4 | type Hook = (request: Request) => void; |
diff --git a/src/stores/lib/TypedStore.ts b/src/stores/lib/TypedStore.ts index 8bae529ba..6d499b637 100644 --- a/src/stores/lib/TypedStore.ts +++ b/src/stores/lib/TypedStore.ts | |||
@@ -1,13 +1,13 @@ | |||
1 | import { | 1 | import { |
2 | type IReactionPublic, | ||
2 | action, | 3 | action, |
3 | computed, | 4 | computed, |
4 | IReactionPublic, | ||
5 | makeObservable, | 5 | makeObservable, |
6 | observable, | 6 | observable, |
7 | } from 'mobx'; | 7 | } from 'mobx'; |
8 | import { Actions } from '../../actions/lib/actions'; | 8 | import type { Stores } from '../../@types/stores.types'; |
9 | import { ApiInterface } from '../../api'; | 9 | import type { Actions } from '../../actions/lib/actions'; |
10 | import { Stores } from '../../@types/stores.types'; | 10 | import type { ApiInterface } from '../../api'; |
11 | import Reaction from './Reaction'; | 11 | import Reaction from './Reaction'; |
12 | 12 | ||
13 | export default abstract class TypedStore { | 13 | export default abstract class TypedStore { |