-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
0510344
commit e52489e
Showing
9 changed files
with
1,246 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.