Commit 72ed591
authored
fix: Tidy up type provision (#764)
* fix(types): Import Svelte types in client instead of top-level types
We import Svelte to hoist its ambient '*.svelte' module type
declaration. However, this depends on browser/DOM types, which TS
consumers not implementing for the browser may not have active (e.g. if
building a storage connector or plugin), so it makes sense to only
import this in the client itself where consumers will need `"lib":
["dom"]` in their tsconfig.json or equivalent.
* fix(types): Move '@types/koa' from dev dependency to dependency
Koa types are used directly in `src/types.ts`, so need to be installed
for TS consumers.1 parent 7dc8c29 commit 72ed591
4 files changed
Lines changed: 27 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
| |||
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
0 commit comments