stencil
stencil copied to clipboard
bug: Attr missing from docs where prop define it as global type like HTMLElement
Prerequisites
- [X] I have read the Contributing Guidelines.
- [X] I agree to follow the Code of Conduct.
- [X] I have searched for existing issues that already report this problem, without success.
Stencil Version
4.5.0
Current Behavior
When i have prop defined with global type then i don't see attr present in custom-docs
@Prop() testElem: HTMLElement;
Expected Behavior
expecting to present test-elem
in attr section in custom docs inside prop
System Info
No response
Steps to Reproduce
have a look at sandbox link to reproduce https://codesandbox.io/p/devbox/stencil-web-component-forked-wnqp67?file=%2Fsrc%2Fcomponents%2Fmy-component%2Fmy-component.tsx%3A31%2C1-32%2C1
Code Reproduction URL
https://codesandbox.io/p/devbox/stencil-web-component-forked-wnqp67?file=%2Fsrc%2Fcomponents%2Fmy-component%2Fmy-component.tsx%3A31%2C1-32%2C1
Additional Information
No response
Thanks!
I was able to verify that this is an issue with how Stencil records attribute types during compilation, resulting in attr
being set to undefined
in earlier in the compiler (and not being written to docs-json
output as a result). I'm going to label this to be ingested into our backlog - Thanks again!