Skip to content

Commit

Permalink
fix: declare png image type to satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinstadler committed Jan 21, 2025
1 parent 1d024ff commit 154cfc6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions types/image.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
declare module "*.png" {
// eslint-disable-next-line no-restricted-imports
import type { StaticImageData } from "next/image";

const content: StaticImageData;

export default content;
}

declare module "*.svg" {
// eslint-disable-next-line no-restricted-imports
import type { StaticImageData } from "next/image";
Expand Down

0 comments on commit 154cfc6

Please sign in to comment.