Update typescript version to 3.8.3

This commit is contained in:
AkiraFukushima 2020-04-11 18:22:49 +09:00
parent dc9ccb45ac
commit 90b131c7d8
35 changed files with 37 additions and 37 deletions

6
package-lock.json generated
View File

@ -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": {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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: () => {

View File

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

View File

@ -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 = {}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 = {}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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