Skip to content

Conversation

@sean-perkins
Copy link
Contributor

Issue number: N/A


What is the current behavior?

When updating to Stencil v3 (commit), we removed many manual exports that are automatically exported by Stencil. This change included removing the MenuI type from being exported. This type is not automatically exported since it is not directly associated to a @Prop.

This causes implementers that previously had a typed value against MenuI in v6 for registering menus, to have to import from:

import { MenuI } from "@ionic/core/dist/types/components/menu/menu-interface";

What is the new behavior?

  • Re-exports the MenuI interface

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot added the package: core @ionic/core package label Apr 18, 2023
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@sean-perkins sean-perkins marked this pull request as ready for review April 18, 2023 17:06
@sean-perkins sean-perkins requested a review from a team as a code owner April 18, 2023 17:06
@liamdebeasi
Copy link
Contributor

Is MenuControllerI supposed to be exported too?

@sean-perkins
Copy link
Contributor Author

It wouldn't hurt, it is only referenced from MenuI. I'll make that change 👍

@sean-perkins sean-perkins changed the title fix(menu): export menu interface fix(menu): export menu interfaces Apr 18, 2023
@sean-perkins sean-perkins enabled auto-merge April 18, 2023 17:20
@sean-perkins sean-perkins added this pull request to the merge queue Apr 18, 2023
Merged via the queue into main with commit 80d8c66 Apr 18, 2023
@sean-perkins sean-perkins deleted the fix/export-menu-interface branch April 18, 2023 19:47
liamdebeasi pushed a commit that referenced this pull request Apr 19, 2023
Issue number: N/A

---------

<!-- Please refer to our contributing documentation for any questions on
submitting a pull request, or let us know here if you need any help:
https://ionicframework.com/docs/building/contributing -->

<!-- Some docs updates need to be made in the `ionic-docs` repo, in a
separate PR. See
https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#modifying-documentation
for details. -->

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

When updating to Stencil v3
([commit](1a8bd6d#diff-83006355bd18aced9f88fd3b27ff6a40527c713b314145c2a34ad54b6361fa87)),
we removed many manual exports that are automatically exported by
Stencil. This change included removing the `MenuI` type from being
exported. This type is not automatically exported since it is not
directly associated to a `@Prop`.

This causes implementers that previously had a typed value against
`MenuI` in v6 for registering menus, to have to import from:
```ts
import { MenuI } from "@ionic/core/dist/types/components/menu/menu-interface";
```

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Re-exports the `MenuI` interface


## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants