You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When importing a library generated with svelte-kit package, types declared manually via .d.ts files aren't available idiomatically:
Is your feature request related to a problem? Please describe.
When importing a library generated with
svelte-kit package
, types declared manually via .d.ts files aren't available idiomatically:Instead, you have to know where the types are defined inside the package — e.g. assuming you had a
src/lib/types/index.d.ts
file you would do this:This works because
.d.ts
files, like other files, get an entry in the generated"exports"
map. But it's a bit ugly.Describe the solution you'd like
config.kit.package.types
option, defaulting to"types"
(or"."
?), that gets included in the generated package.json.ts
files) insrc/lib
, we use this value as the output directory.d.ts
files in"exports"
Describe alternatives you've considered
Continuing to rely on
"exports"
How important is this feature to you?
Important for authors and users of libraries created with
svelte-kit package
, but probably not urgentThe text was updated successfully, but these errors were encountered: