diff --git a/tsconfig.json b/tsconfig.json index d0e887a..a58700a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] } diff --git a/types/images.d.ts b/types/images.d.ts new file mode 100644 index 0000000..74e27de --- /dev/null +++ b/types/images.d.ts @@ -0,0 +1,5 @@ +declare module '*.webp'; +declare module '*.png'; +declare module '*.jpg'; +declare module '*.jpeg'; +declare module '*.svg'; \ No newline at end of file