refs #850 Add define types for unreadNotification

This commit is contained in:
AkiraFukushima 2019-04-15 22:24:02 +09:00
parent 79c850405e
commit efabd590a9
5 changed files with 20 additions and 11 deletions

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -0,0 +1,5 @@
export type UnreadNotification = {
direct: boolean,
local: boolean,
public: boolean
}