Commit 1d90dc0
feat: export type Picture in enhanced-img (#15225)
* feat: export type Picture in enhanced-img
This type is part of public api, so it should be reexported.
Otherwise users have to explicitly add "vite-imagetools", or use hacks
like `typeof import('fake.jpg?enhanced').default`
This type is needed when using `import.meta.glob`, because by default it
is getting typed as `unknown`.
* Apply suggestion from @teemingc
Co-authored-by: Tee Ming <[email protected]>
* tweak
---------
Co-authored-by: Elliott Johnson <[email protected]>
Co-authored-by: Tee Ming <[email protected]>1 parent dc629d5 commit 1d90dc0
File tree
2 files changed
+7
-0
lines changed- .changeset
- packages/enhanced-img/types
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
0 commit comments