Fixed a few more linter errors
This commit is contained in:
@ -12,4 +12,4 @@ export function bytesHumanReadable(fileSize: number): string {
|
||||
}
|
||||
|
||||
return `${fileSize.toFixed(0)} ${unit}`
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
export function delay<T>(millis: number, value?: T): Promise<T> {
|
||||
return new Promise(resolve => setTimeout(() => resolve(value), millis))
|
||||
}
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ export * from "./plural"
|
||||
export * from "./requestIdleCallback"
|
||||
export * from "./swapElements"
|
||||
export * from "./uploadWithProgress"
|
||||
export * from "./bytesHumanReadable"
|
||||
export * from "./bytesHumanReadable"
|
||||
|
@ -12,4 +12,4 @@ export function plural(count: number, singular: string): string {
|
||||
}
|
||||
|
||||
return count + " " + singular + "s"
|
||||
}
|
||||
}
|
||||
|
@ -4,4 +4,4 @@ export function requestIdleCallback(func: Function) {
|
||||
} else {
|
||||
func()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ export async function supportsWebP(): Promise<boolean> {
|
||||
const data = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="
|
||||
const blob = await fetch(data).then(r => r.blob())
|
||||
return createImageBitmap(blob).then(() => true, () => false)
|
||||
}
|
||||
}
|
||||
|
@ -20,4 +20,4 @@ export function swapElements(a: Node, b: Node) {
|
||||
bParent.appendChild(a)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user