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
This also occurs when the object is readonly, emitting <IAppRootreadonly {a: [object Object]; }>
This happens effectively every time you write a type that a basic search-and-replace would mess up, for example EventEmitter<readonly A[]> outputs EventEmitter<CustomEvent<IAppRootreadonly [object Object][]>>. I'm guessing the codegen there isn't very robust.
The text was updated successfully, but these errors were encountered:
This issue has been labeled as help wanted. This label is added to issues that we believe would be good for contributors.
If you'd like to work on this issue, please comment here letting us know that you would like to submit a pull request for it. This helps us to keep track of the pull request and make sure there isn't duplicated effort.
Thank you!
Prerequisites
Stencil Version
4.8.1
Stencil Framework Output Target
Angular
Stencil Framework Output Target Version
0.8.3
Current Behavior
The emitted type for AppRoot is
which is invalid TypeScript
Expected Behavior
The emitted type for AppRoot is
Steps to Reproduce
npm run build
in the repo rootThe component which causes the broken codegen is defined as follows:
Another alternative definition which also exhibits the pathological behavior is as follows:
Code Reproduction URL
https://github.com/aniederer-chatham/stencil-angular-type-bug-poc
Additional Information
This also occurs when the object is readonly, emitting
<IAppRootreadonly {a: [object Object]; }>
This happens effectively every time you write a type that a basic search-and-replace would mess up, for example
EventEmitter<readonly A[]>
outputsEventEmitter<CustomEvent<IAppRootreadonly [object Object][]>>
. I'm guessing the codegen there isn't very robust.The text was updated successfully, but these errors were encountered: