Skip to content

Commit

Permalink
Add image type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tats-u committed Feb 23, 2023
1 parent ab87a4f commit b49f812
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/lqip-loader/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ type Options = {
palette: boolean;
};

export type ImageWithLqip<Source = string> = {
preSrc: string;
src: Source;
};

export default async function lqipLoader(
this: LoaderContext<Options>,
contentBuffer: Buffer,
Expand Down

0 comments on commit b49f812

Please sign in to comment.