更新依赖,code lint
This commit is contained in:
@@ -9,5 +9,5 @@ console.log('hello download worker')
|
||||
|
||||
exposeWorker(Object.assign({}, common, download))
|
||||
|
||||
export declare type workerDownloadTypes = typeof common &
|
||||
export type workerDownloadTypes = typeof common &
|
||||
typeof download
|
||||
|
||||
@@ -10,6 +10,6 @@ console.log('hello main worker')
|
||||
|
||||
exposeWorker(Object.assign({}, common, list, music))
|
||||
|
||||
export declare type workerMainTypes = typeof common
|
||||
export type workerMainTypes = typeof common
|
||||
& typeof list
|
||||
& typeof music
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as Comlink from 'comlink'
|
||||
|
||||
export declare type MainTypes = Comlink.Remote<LX.WorkerMainTypes>
|
||||
export type MainTypes = Comlink.Remote<LX.WorkerMainTypes>
|
||||
|
||||
export const createMainWorker = () => {
|
||||
const worker: Worker = new Worker(new URL(
|
||||
@@ -20,7 +20,7 @@ export const createMainWorker = () => {
|
||||
// // })
|
||||
// }
|
||||
|
||||
export declare type DownloadTypes = Comlink.Remote<LX.WorkerDownloadTypes>
|
||||
export type DownloadTypes = Comlink.Remote<LX.WorkerDownloadTypes>
|
||||
export const createDownloadWorker = () => {
|
||||
const worker: Worker = new Worker(new URL(
|
||||
/* webpackChunkName: 'renderer.download.worker' */
|
||||
|
||||
Reference in New Issue
Block a user