mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-30 17:15:16 +01:00
refs #850 Add define types for unreadNotification
This commit is contained in:
parent
79c850405e
commit
efabd590a9
13
src/constants/unreadNotification/index.d.ts
vendored
Normal file
13
src/constants/unreadNotification/index.d.ts
vendored
Normal 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
|
@ -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,
|
||||
|
5
src/types/unreadNotification.ts
Normal file
5
src/types/unreadNotification.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export type UnreadNotification = {
|
||||
direct: boolean,
|
||||
local: boolean,
|
||||
public: boolean
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user