mirror of https://github.com/buster-so/buster.git
71 lines
1.1 KiB
TypeScript
71 lines
1.1 KiB
TypeScript
// 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;
|
|
}
|