Skip to content

Commit

Permalink
chore: type declaration for images
Browse files Browse the repository at this point in the history
  • Loading branch information
devshinthant committed Jul 4, 2024
1 parent da7fb82 commit 8a5cf32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"exclude": ["node_modules"],
"typeRoots": ["./node_modules/@types", "./types"]
}
5 changes: 5 additions & 0 deletions types/images.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '*.webp';
declare module '*.png';
declare module '*.jpg';
declare module '*.jpeg';
declare module '*.svg';

0 comments on commit 8a5cf32

Please sign in to comment.