Skip to content

Commit 33005db

Browse files
committed
Fix squelch ts warnings
1 parent c2ecfc1 commit 33005db

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ file at `src/ambient.d.ts`:
4141
```js
4242
// Squelch warnings of all imports from your image assets dir
4343
declare module '$lib/assets/*' {
44-
const image: Record<string, any>
44+
const image: Record<string, any>[]
4545
export default image
4646
}
4747
```

src/ambient.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
declare module '*?run'
2-
declare module '*&run'
1+
declare module '*?run' {
2+
const image: Record<string, any>[]
3+
export default image
4+
}
5+
declare module '*&run' {
6+
const image: Record<string, any>[]
7+
export default image
8+
}

0 commit comments

Comments
 (0)