crazy fix

This commit is contained in:
Nate Kelley 2025-05-29 19:04:38 -06:00
parent f2e7507c69
commit 65d9e104ed
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 71 additions and 1 deletions

70
web/globals.d.ts vendored Normal file
View File

@ -0,0 +1,70 @@
// Global type declarations for static image imports
declare module '*.png' {
const content: {
src: string;
height: number;
width: number;
blurDataURL?: string;
};
export default content;
}
declare module '*.jpg' {
const content: {
src: string;
height: number;
width: number;
blurDataURL?: string;
};
export default content;
}
declare module '*.jpeg' {
const content: {
src: string;
height: number;
width: number;
blurDataURL?: string;
};
export default content;
}
declare module '*.gif' {
const content: {
src: string;
height: number;
width: number;
blurDataURL?: string;
};
export default content;
}
declare module '*.webp' {
const content: {
src: string;
height: number;
width: number;
blurDataURL?: string;
};
export default content;
}
declare module '*.svg' {
const content: {
src: string;
height: number;
width: number;
blurDataURL?: string;
};
export default content;
}
declare module '*.ico' {
const content: {
src: string;
height: number;
width: number;
blurDataURL?: string;
};
export default content;
}

View File

@ -24,6 +24,6 @@
"@/*": ["src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"include": ["next-env.d.ts", "globals.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}