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
feat(compiler): export custom types in compiled output (#3710)
NOTE: This was originally introduced as a feature in Stencil 2.x, but was reverted when a breaking change was identified.
Initial PR (orginally merged as a part of Stencil 2.x): #3612
Reversion of above PR (due to identified breaking change): #3708
* misc(compiler): fix typos in stencil-sys
* fix(compiler): export custom event types from type declaration file
This commit updates the generated `components.d.ts` file in the types directory to re-export any types used by Stencil component custom events
* tests(compiler): fix path normalization for `generateAppTypes`
* misc(): test-app type declarations
* fix(compiler): custom event "paths" for local type definitions
This commit adds logic for setting the `path` property on custom event type references in the output static event metadata for Stencil `Event()` properties
* misc(): PR cleanup/feedback
* test(complier): more use cases for `generateAppTypes`
* test(compiler): split & add custom prop/event tests for generateAppTypes
* test(compiler): use absolute paths for type references
* refactor(compiler): move setting `path` on static event metadata
This commit moves the setting of the `path` property on custom type references for `local` imports to the transformation function that defines the static metadata rather than this operation occurring after the transformation. Essentially, the property gets set at a higher level
0 commit comments