mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-30 00:55:20 +01:00
Update typescript version to 3.8.3
This commit is contained in:
parent
dc9ccb45ac
commit
90b131c7d8
6
package-lock.json
generated
6
package-lock.json
generated
@ -25208,9 +25208,9 @@
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "3.3.4000",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.3.4000.tgz",
|
||||
"integrity": "sha512-jjOcCZvpkl2+z7JFn0yBOoLQyLoIkNZAs/fYJkUG6VKy6zLPHJGfQJYFHzibB6GJaF/8QrcECtlQ5cpvRHSMEA==",
|
||||
"version": "3.8.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz",
|
||||
"integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==",
|
||||
"dev": true
|
||||
},
|
||||
"uglify-js": {
|
||||
|
@ -279,7 +279,7 @@
|
||||
"ts-jest": "^24.3.0",
|
||||
"ts-loader": "^6.2.1",
|
||||
"ttfinfo": "^0.2.0",
|
||||
"typescript": "^3.3.4000",
|
||||
"typescript": "^3.8.3",
|
||||
"url-loader": "^3.0.0",
|
||||
"vue-html-loader": "^1.2.4",
|
||||
"vue-loader": "^15.9.1",
|
||||
|
@ -9,7 +9,7 @@ import TimeFormat from '~/src/constants/timeFormat'
|
||||
import Language from '~/src/constants/language'
|
||||
import DefaultFonts from '@/utils/fonts'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
const state = () => {
|
||||
return {
|
||||
|
@ -3,7 +3,7 @@ import Vuex from 'vuex'
|
||||
import { ipcMain, ipcRenderer } from '~/spec/mock/electron'
|
||||
import GlobalHeader, { GlobalHeaderState } from '~/src/renderer/store/GlobalHeader'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
const state = (): GlobalHeaderState => {
|
||||
return {
|
||||
|
@ -3,7 +3,7 @@ import Vuex from 'vuex'
|
||||
import { ipcMain, ipcRenderer } from '~/spec/mock/electron'
|
||||
import Login, { LoginState } from '@/store/Login'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
|
@ -4,7 +4,7 @@ import { ipcMain, ipcRenderer } from '~/spec/mock/electron'
|
||||
import Account, { AccountState } from '@/store/Preferences/Account'
|
||||
import { LocalAccount } from '~/src/types/localAccount'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
const account: LocalAccount = {
|
||||
_id: 'sample',
|
||||
|
@ -9,7 +9,7 @@ import DefaultFonts from '@/utils/fonts'
|
||||
import Appearance, { AppearanceState } from '@/store/Preferences/Appearance'
|
||||
import { ipcMain, ipcRenderer } from '~/spec/mock/electron'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
const state = (): AppearanceState => {
|
||||
return {
|
||||
|
@ -3,7 +3,7 @@ import Vuex from 'vuex'
|
||||
import { ipcMain, ipcRenderer } from '~/spec/mock/electron'
|
||||
import General, { GeneralState } from '@/store/Preferences/General'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
const state = (): GeneralState => {
|
||||
return {
|
||||
|
@ -4,7 +4,7 @@ import { ipcMain, ipcRenderer } from '~/spec/mock/electron'
|
||||
import Language, { LanguageState } from '@/store/Preferences/Language'
|
||||
import DefaultLanguage from '~/src/constants/language'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
const state = (): LanguageState => {
|
||||
return {
|
||||
|
@ -3,7 +3,7 @@ import Vuex from 'vuex'
|
||||
import { ipcMain, ipcRenderer } from '~/spec/mock/electron'
|
||||
import Notification, { NotificationState } from '@/store/Preferences/Notification'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
const state = (): NotificationState => {
|
||||
return {
|
||||
|
@ -5,7 +5,7 @@ import { ipcMain, ipcRenderer } from '~/spec/mock/electron'
|
||||
import TimelineSpace, { TimelineSpaceState, blankAccount } from '~/src/renderer/store/TimelineSpace'
|
||||
import unreadSettings from '~/src/constants/unreadNotification'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
const emacsEmoji: Entity.Emoji = {
|
||||
shortcode: 'emacs',
|
||||
|
@ -5,7 +5,7 @@ import Vuex from 'vuex'
|
||||
import { LocalTag } from '~/src/types/localTag'
|
||||
import List, { ListState } from '@/store/TimelineSpace/Contents/Hashtag/List'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
const tag1: LocalTag = {
|
||||
tagName: 'tag1',
|
||||
|
@ -5,7 +5,7 @@ import { ipcMain, ipcRenderer } from '~/spec/mock/electron'
|
||||
import SideMenu, { SideMenuState } from '~/src/renderer/store/TimelineSpace/SideMenu'
|
||||
import { LocalTag } from '~/src/types/localTag'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
const mockClient = {
|
||||
getLists: () => {
|
||||
|
@ -13,7 +13,7 @@ import { Appearance } from '~/src/types/appearance'
|
||||
import { ProxyConfig } from 'megalodon'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type AppState = {
|
||||
theme: ThemeColorType
|
||||
|
@ -2,7 +2,7 @@ import { Module, ActionTree } from 'vuex'
|
||||
import { RootState } from '@/store'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type AuthorizeState = {}
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { RootState } from '@/store'
|
||||
import { StreamingError } from '~src/errors/streamingError'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type GlobalHeaderState = {
|
||||
accounts: Array<LocalAccount>
|
||||
|
@ -3,7 +3,7 @@ import { Module, MutationTree, ActionTree } from 'vuex'
|
||||
import { RootState } from '@/store'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type LoginState = {
|
||||
selectedInstance: string | null
|
||||
|
@ -3,7 +3,7 @@ import { LocalAccount } from '~/src/types/localAccount'
|
||||
import { RootState } from '@/store'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type AccountState = {
|
||||
accounts: Array<LocalAccount>
|
||||
|
@ -9,7 +9,7 @@ import { Appearance } from '~/src/types/appearance'
|
||||
import { BaseConfig } from '~/src/types/preference'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type AppearanceState = {
|
||||
appearance: Appearance
|
||||
|
@ -5,7 +5,7 @@ import { Timeline } from '~/src/types/timeline'
|
||||
import { BaseConfig, General, Other } from '~/src/types/preference'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type GeneralState = {
|
||||
general: General
|
||||
|
@ -5,7 +5,7 @@ import { Language as LanguageSet } from '~/src/types/language'
|
||||
import { BaseConfig } from '~/src/types/preference'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type LanguageState = {
|
||||
language: LanguageSet
|
||||
|
@ -4,7 +4,7 @@ import { BaseConfig } from '~/src/types/preference'
|
||||
import { Proxy, ProxySource, ProxyProtocol, ManualProxy } from '~/src/types/proxy'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type NetworkState = {
|
||||
source: ProxySource
|
||||
|
@ -4,7 +4,7 @@ import { Notify } from '~/src/types/notify'
|
||||
import { BaseConfig, Notification } from '~/src/types/preference'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type NotificationState = {
|
||||
notification: Notification
|
||||
|
@ -4,7 +4,7 @@ import { RootState } from '@/store'
|
||||
import { UnreadNotification } from '~/src/types/unreadNotification'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type TimelineState = {
|
||||
unreadNotification: UnreadNotification
|
||||
|
@ -12,7 +12,7 @@ import { AccountLoadError } from '@/errors/load'
|
||||
import { TimelineFetchError } from '@/errors/fetch'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type TimelineSpaceState = {
|
||||
account: LocalAccount
|
||||
|
@ -4,7 +4,7 @@ import { Module, ActionTree } from 'vuex'
|
||||
import { RootState } from '@/store'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type HashtagState = {}
|
||||
|
||||
|
@ -3,7 +3,7 @@ import { Module, MutationTree, ActionTree } from 'vuex'
|
||||
import { RootState } from '@/store'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type ListState = {
|
||||
tags: Array<LocalTag>
|
||||
|
@ -4,7 +4,7 @@ import { RootState } from '@/store'
|
||||
import { LoadPositionWithTag } from '@/types/loadPosition'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type TagState = {
|
||||
timeline: Array<Entity.Status>
|
||||
|
@ -4,7 +4,7 @@ import { RootState } from '@/store'
|
||||
import { LoadPositionWithList } from '@/types/loadPosition'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type ShowState = {
|
||||
timeline: Array<Entity.Status>
|
||||
|
@ -3,7 +3,7 @@ import { Module, MutationTree, ActionTree } from 'vuex'
|
||||
import { RootState } from '@/store'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type NotificationsState = {
|
||||
lazyLoading: boolean
|
||||
|
@ -16,7 +16,7 @@ import {
|
||||
} from '@/errors/validations'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
type MediaDescription = {
|
||||
id: string
|
||||
|
@ -7,7 +7,7 @@ import { InsertAccountCache } from '~/src/types/insertAccountCache'
|
||||
import { CachedAccount } from '~/src/types/cachedAccount'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
type Suggest = {
|
||||
name: string
|
||||
|
@ -6,7 +6,7 @@ import { RootState } from '@/store'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
import { EnabledTimelines } from '~/src/types/enabledTimelines'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export type SideMenuState = {
|
||||
unreadHomeTimeline: boolean
|
||||
|
@ -15,7 +15,7 @@ import { MyWindow } from '~/src/types/global'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
export interface RootState {
|
||||
App: AppState
|
||||
|
@ -3,7 +3,7 @@ import { Module, ActionTree } from 'vuex'
|
||||
import { RootState } from '@/store'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
|
||||
const win = window as MyWindow
|
||||
const win = (window as any) as MyWindow
|
||||
|
||||
type VoteParam = {
|
||||
id: string
|
||||
|
Loading…
x
Reference in New Issue
Block a user