fix: lint

This commit is contained in:
crazywoola 2024-10-24 17:25:30 +08:00
parent 181572e330
commit dddd72ec83

View File

@ -1,4 +1,4 @@
export const createImage = (url: string) => const createImage = (url: string) =>
new Promise<HTMLImageElement>((resolve, reject) => { new Promise<HTMLImageElement>((resolve, reject) => {
const image = new Image() const image = new Image()
image.addEventListener('load', () => resolve(image)) image.addEventListener('load', () => resolve(image))