Skip to content

refactor(angular): use type for imports used as types - #27998

Merged
liamdebeasi merged 1 commit into
FW-4612from
type-cleanup
Aug 15, 2023
Merged

refactor(angular): use type for imports used as types#27998
liamdebeasi merged 1 commit into
FW-4612from
type-cleanup

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Aug 15, 2023

Copy link
Copy Markdown
Contributor

Issue number: N/A


What is the current behavior?

A few imports in @ionic/angular/common were being used as types but did not use the type import.

What is the new behavior?

  • Added type to imports that are only being used as types.
  • Changed the import path from @ionic/core to @ionic/core/components. This makes no functional difference and is for consistency with other imports. @ionic/angular/common should only import from @ionic/core/components instead of @ionic/core to avoid lazy loading side effects.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions Bot added the package: angular @ionic/angular package label Aug 15, 2023
@liamdebeasi liamdebeasi changed the title refactor(angular): use type refactor(angular): use type for imports used as types Aug 15, 2023
@liamdebeasi
liamdebeasi marked this pull request as ready for review August 15, 2023 15:27
@liamdebeasi
liamdebeasi merged commit 84212ac into FW-4612 Aug 15, 2023
@liamdebeasi
liamdebeasi deleted the type-cleanup branch August 15, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants