From b49f812ceda1721e14a9a9ffc8cd80b2bb13dcc9 Mon Sep 17 00:00:00 2001 From: Tatsunori Uchino Date: Thu, 23 Feb 2023 17:56:45 +0900 Subject: [PATCH] Add image type definition --- packages/lqip-loader/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/lqip-loader/src/index.ts b/packages/lqip-loader/src/index.ts index 66d828fffb801..b8b9c373cd817 100644 --- a/packages/lqip-loader/src/index.ts +++ b/packages/lqip-loader/src/index.ts @@ -13,6 +13,11 @@ type Options = { palette: boolean; }; +export type ImageWithLqip = { + preSrc: string; + src: Source; +}; + export default async function lqipLoader( this: LoaderContext, contentBuffer: Buffer,