Svelte component .d.ts
not generated in this use case
#9631
Unanswered
bledeabogdan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There is a strange situation that I really do not understand regarding some type definition involving the following use case. I've created a SB and a GitHub repository for it, maybe someone could help me understand why.
There is an utility method which return a possible prop for the component which is basically a svelte
writable
store. The templateT
passed to the writable it's being generated when usingtype
, but it's not generating the.d.ts
file at all or generating that specific prop withany
as type when usinginterface
.Anybody got any idea why that might be happening?
SB: https://stackblitz.com/edit/node-syvwi8
GitHub Repo (i've also included the
dist
folder): https://github.com/bledeabogdan/svelte-ts-writable-type-interfaceBeta Was this translation helpful? Give feedback.
All reactions