[Glitch] Add TypeScript support for `mastodon` alias and image imports

Port 5f709b1601 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
lolsob-rspec
たいち ひ 2023-05-08 18:28:36 +09:00 committed by Claire
parent 43b38dc9e6
commit 8a2bb3fb99
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
declare module '*.avif' {
const path: string;
export default path;
}
declare module '*.gif' {
const path: string;
export default path;
}
declare module '*.jpg' {
const path: string;
export default path;
}
declare module '*.jpg' {
const path: string;
export default path;
}
declare module '*.png' {
const path: string;
export default path;
}
declare module '*.svg' {
const path: string;
export default path;
}
declare module '*.webp' {
const path: string;
export default path;
}