mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(menu): export menu interfaces (#27227)
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](1a8bd6d8c6 (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. -->
This commit is contained in:
2
core/src/interface.d.ts
vendored
2
core/src/interface.d.ts
vendored
@@ -15,7 +15,7 @@ export { InputCustomEvent } from './components/input/input-interface';
|
||||
export { CounterFormatter } from './components/item/item-interface';
|
||||
export { ItemSlidingCustomEvent } from './components/item-sliding/item-sliding-interface';
|
||||
export { LoadingOptions } from './components/loading/loading-interface';
|
||||
export { MenuCustomEvent } from './components/menu/menu-interface';
|
||||
export { MenuCustomEvent, MenuI, MenuControllerI } from './components/menu/menu-interface';
|
||||
export { ModalOptions, ModalCustomEvent } from './components/modal/modal-interface';
|
||||
export { NavDirection, NavCustomEvent } from './components/nav/nav-interface';
|
||||
export { PickerOptions, PickerColumnOption } from './components/picker/picker-interface';
|
||||
|
||||
Reference in New Issue
Block a user