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

fix(designer): Improve types in updateDynamicDataInNode to prevent issues #5239

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

ek68794998
Copy link
Contributor

Requirement Checklist

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes or features)
  • Docs have been added or updated (for bug fixes or features)

Type of Change

  • Bug fix
  • Feature
  • Other

Current behavior

Prior to #5207, there was a bug where an undefined parameter could be passed despite the invoked method not accepting undefined, due to a use of any. This was fixed in #5207 by adding an !isNullOrUndefined check, but the typing was not updated to force this constraint, meaning that the removal of that conditional still compiles:

image

New Behavior

Types have been updated to force the requirement that no item is undefined:

image

Impact of Change

No breaking changes.

@ek68794998 ek68794998 marked this pull request as ready for review July 31, 2024 18:06
@ek68794998 ek68794998 enabled auto-merge (squash) July 31, 2024 18:06
@ek68794998 ek68794998 requested a review from ccastrotrejo July 31, 2024 18:06
@ek68794998 ek68794998 merged commit 9ad9de1 into Azure:main Jul 31, 2024
12 checks passed
@ek68794998 ek68794998 deleted the ek/typing branch July 31, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants