mirror of https://github.com/buster-so/buster.git
crazy fix
This commit is contained in:
parent
f2e7507c69
commit
65d9e104ed
|
@ -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;
|
||||
}
|
|
@ -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"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue