refs #850 Add define types for unreadNotification
This commit is contained in:
parent
79c850405e
commit
efabd590a9
|
@ -0,0 +1,13 @@
|
|||
export type UnreadNotificationType = {
|
||||
default: boolean
|
||||
}
|
||||
|
||||
export type UnreadNotificationList = {
|
||||
Direct: UnreadNotificationType,
|
||||
Local: UnreadNotificationType,
|
||||
Public: UnreadNotificationType
|
||||
}
|
||||
|
||||
declare var u: UnreadNotificationList
|
||||
|
||||
export default u
|
|
@ -2,12 +2,8 @@ import { ipcRenderer } from 'electron'
|
|||
import unreadSettings from '~/src/constants/unreadNotification'
|
||||
import { Module, MutationTree, ActionTree } from 'vuex'
|
||||
import { RootState } from '@/store'
|
||||
import { UnreadNotification } from '~/src/types/unreadNotification'
|
||||
|
||||
interface UnreadNotification {
|
||||
direct: boolean,
|
||||
local: boolean,
|
||||
public: boolean
|
||||
}
|
||||
|
||||
export interface TimelineState {
|
||||
unreadNotification: UnreadNotification
|
||||
|
|
|
@ -11,6 +11,7 @@ import { Module, MutationTree, ActionTree } from 'vuex'
|
|||
import LocalAccount from '~/src/types/localAccount'
|
||||
import { Notify } from './App'
|
||||
import { RootState } from '@/store'
|
||||
import { UnreadNotification } from '~/src/types/unreadNotification'
|
||||
|
||||
declare var Notification: any
|
||||
|
||||
|
@ -19,12 +20,6 @@ interface MyEmoji {
|
|||
image: string
|
||||
}
|
||||
|
||||
interface UnreadNotification {
|
||||
direct: boolean,
|
||||
local: boolean,
|
||||
public: boolean
|
||||
}
|
||||
|
||||
export interface TimelineSpaceState {
|
||||
account: LocalAccount,
|
||||
loading: boolean,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
export type UnreadNotification = {
|
||||
direct: boolean,
|
||||
local: boolean,
|
||||
public: boolean
|
||||
}
|
Loading…
Reference in New Issue