-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Loss of ts type after packing #4596
Comments
Hey @wabi-habi 👋 I think there are a few separate things going on here:
This is a known issue, and is currently being tracked by #3603
Can you clarify which output target are you using to generated the README for us please? And which editor you're not seeing the prompts in? |
Hey there, I'm using the default packaging configuration, no changes, and the editor is |
Ah, I see. For what it's worth, the default generated docs (README.md files) do not affect/play a role in type generation in any IDE. We do however, have a However, without configuring this functionality, I am able to get Intellisense on the component in the reproduction case: This requires the dev server to be running or a build of Stencil to have occurred in order for typings to be generated. Work related to removing this limitation is related to #3534. Since this issue relates to an existing one, I'm going to close this out. Thanks! |
You misunderstood me, I meant that the d.ts file generated has only |
Prerequisites
Stencil Version
^4.0.1
Current Behavior
Example: The component has a
prop
parameter ofcolor
, which has a parameter type ofMyColor | string
.But in the
readme.md
file generated by packaging, the type ofcolor
is left asstring
! So there is no ts prompt when using the component!Expected Behavior
The
MyColor
type should not be lost.System Info
No response
Steps to Reproduce
Code Reproduction URL
The above steps are a complete reproduction of the code
Additional Information
No response
The text was updated successfully, but these errors were encountered: