lint fix
This commit is contained in:
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
import {
|
||||
IAudioMetadata as iAudioMetadata,
|
||||
type IAudioMetadata as iAudioMetadata,
|
||||
} from 'music-metadata'
|
||||
|
||||
declare global {
|
||||
|
||||
Vendored
+1
-1
@@ -4,7 +4,7 @@
|
||||
// }
|
||||
|
||||
declare module '*.vue' {
|
||||
import { Component } from 'vue'
|
||||
import { type Component } from 'vue'
|
||||
const component: Component
|
||||
export default component
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@ import path from 'path'
|
||||
import { EventEmitter } from 'events'
|
||||
import { performance } from 'perf_hooks'
|
||||
import { STATUS } from './util'
|
||||
import http from 'http'
|
||||
import { request, Options as RequestOptions } from './request'
|
||||
import type http from 'http'
|
||||
import { request, type Options as RequestOptions } from './request'
|
||||
|
||||
export interface Options {
|
||||
forceResume: boolean
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Downloader, { Options as DownloaderOptions } from './Downloader'
|
||||
import Downloader, { type Options as DownloaderOptions } from './Downloader'
|
||||
import { getRequestAgent } from './util'
|
||||
import { sizeFormate } from '@common/utils'
|
||||
import http from 'http'
|
||||
import type http from 'http'
|
||||
|
||||
// these are the default options
|
||||
// const options = {
|
||||
|
||||
@@ -120,7 +120,7 @@ export const fixNewMusicInfoQuality = (musicInfo: LX.Music.MusicInfo) => {
|
||||
}
|
||||
|
||||
export const filterMusicList = <T extends LX.Music.MusicInfo>(list: T[]): T[] => {
|
||||
const ids: Set<string> = new Set()
|
||||
const ids = new Set<string>()
|
||||
return list.filter(s => {
|
||||
if (!s.id || ids.has(s.id) || !s.name) return false
|
||||
if (s.singer == null) s.singer = ''
|
||||
|
||||
@@ -14,9 +14,9 @@ import {
|
||||
shallowRef,
|
||||
unref,
|
||||
markRaw,
|
||||
ComputedRef,
|
||||
Ref,
|
||||
ShallowRef,
|
||||
type ComputedRef,
|
||||
type Ref,
|
||||
type ShallowRef,
|
||||
defineProps,
|
||||
defineEmits,
|
||||
defineComponent,
|
||||
|
||||
Reference in New Issue
Block a user