We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 112e102 commit 890d18dCopy full SHA for 890d18d
src/ambient.d.ts
@@ -1,6 +1,14 @@
1
// Stop warnings of all imports from your image assets directory.
2
3
+// Enhanced images (?enhanced) provide a Picture for <enhanced:img>
4
+declare module '$lib/assets/*?enhanced' {
5
+ import type { Picture } from '@sveltejs/enhanced-img';
6
+ const picture: Picture;
7
+ export default picture;
8
+}
9
+
10
+// Plain asset imports fallback to string URLs
11
declare module '$lib/assets/*' {
- const image: Record<string, any>;
- export default image;
12
+ const src: string;
13
+ export default src;
14
}
0 commit comments