From 2e0956527779e616fc7affcdf506900a9fdd3fc0 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Mon, 25 Sep 2023 03:38:14 +0900 Subject: [PATCH] Update packages/image/src/load.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 정충일 --- packages/image/src/load.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/image/src/load.ts b/packages/image/src/load.ts index 5bf2e65..babcab9 100644 --- a/packages/image/src/load.ts +++ b/packages/image/src/load.ts @@ -1,5 +1,5 @@ /** - * Loads the given images. If WebP is WebP source is provided, it will load that. Otherwise, it loads the default source. + * Loads an image from the given source URL and returns a Promise that resolves to the loaded image. */ export const load = (src: HTMLImageElement["src"]) => new Promise((resolve, reject) => {