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: typing for template props data context #2754

Merged
merged 1 commit into from Oct 4, 2023

Conversation

gavinbarron
Copy link
Member

Closes #2753

PR Type

  • Bugfix

Description of the changes

makes MgtTemplateProps generic to define the type for dataContext with a default of any type this provides backwards compatability and allows for specific typing of templates.

PR checklist

  • Project builds (yarn build) and changes have been tested in at least two supported browsers (Edge + non-Chromium based browser)
  • All public APIs (classes, methods, etc) have been documented following the jsdoc syntax
  • Stories have been added and existing stories have been tested
  • Added appropriate documentation. Docs PR:
  • License header has been added to all new source files (yarn setLicense)
  • Contains NO breaking changes

Other information

makes MgtTemplateProps generic to define the type for dataContext with a default of any type
this provides backwards compatability and allows for specific typing of templates.
@gavinbarron gavinbarron requested a review from a team as a code owner October 3, 2023 21:43
@gavinbarron gavinbarron enabled auto-merge (squash) October 4, 2023 13:18
@gavinbarron gavinbarron merged commit c9023c2 into main Oct 4, 2023
7 checks passed
@gavinbarron gavinbarron deleted the fix/template-prop-typing branch October 4, 2023 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG] unknown type of dataContext in MgtTemplateProps breaks compilation of dependent applications
2 participants