Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(event): enhance FrameworkEventInitType type definition #2171

Merged
merged 1 commit into from
May 23, 2024

Conversation

odinr
Copy link
Collaborator

@odinr odinr commented May 21, 2024

Why

This PR introduces changes to the FrameworkEventInitType utility type in the @equinor/fusion-framework package. The current behavior is that the FrameworkEventInitType type only handles events that extend the IFrameworkEvent interface. The new behavior is that it also handles events that extend the FrameworkEvent class.

This change does not introduce a breaking change, as it only extends the functionality of the existing FrameworkEventInitType type.

closes: N/A (no issue referenced)

Check off the following:

  • Confirm that I checked changes to branch which I am merging into.

    • I have validated included files
    • My code does not generate new linting warnings
    • My PR is not a duplicate, check existing pr`s
  • Confirm that the I have completed the self-review checklist.

  • Confirm that my changes meet our code of conduct.

Copy link

changeset-bot bot commented May 21, 2024

🦋 Changeset detected

Latest commit: 770eacb

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added 🚀 feature New feature or request 🧬 Modules labels May 21, 2024
@odinr odinr marked this pull request as ready for review May 22, 2024 05:30
@odinr odinr requested a review from a team as a code owner May 22, 2024 05:30
Copy link
Contributor

github-actions bot commented May 22, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 12.92% 3678 / 28455
🔵 Statements 12.92% 3678 / 28455
🔵 Functions 12.81% 92 / 718
🔵 Branches 27.53% 225 / 817
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
packages/modules/event/src/event.ts 0% 0% 0% 0% 1-140
packages/modules/event/src/index.ts 0% 0% 0% 0% 1-18
Generated in workflow #6237

The FrameworkEventInitType type definition has been enhanced to support both IFrameworkEvent and FrameworkEvent generic types. This change improves type safety and flexibility when working with framework events.

Additionally, the FrameworkEventInitType type has been exported from the event module, making it more accessible for other parts of the codebase.
@odinr odinr force-pushed the feat/event/improve-event-typeings branch from c5c64f6 to 770eacb Compare May 23, 2024 09:47
@odinr odinr enabled auto-merge (squash) May 23, 2024 09:47
@odinr odinr merged commit 9a91bb7 into main May 23, 2024
8 checks passed
@odinr odinr deleted the feat/event/improve-event-typeings branch May 23, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 feature New feature or request 🧬 Modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants