mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-24 19:37:26 +00:00
Add TypeScript support for mastodon alias and image imports (#24895)
This commit is contained in:
34
app/javascript/types/image.d.ts
vendored
Normal file
34
app/javascript/types/image.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user