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: improve types to disallow invalid combo of collider args #3024

Merged
merged 4 commits into from
May 28, 2024

Conversation

mattjennings
Copy link
Contributor

===:clipboard: PR Checklist :clipboard:===

  • 📌 issue exists in github for these changes
  • 🔬 existing tests still pass
  • 🙈 code conforms to the style guide
  • 📐 new tests written and passing / old tests updated with new scenario(s)
  • 📄 changelog entry added (or not needed)

==================

This causes type errors in a few tests. Not sure if those were just mistyped actors or if those were legitimate usage of mixing width/height/radius/collider.

Changes:

  • improve types to disallow invalid combo of collider/width/height/radius in actor args
  • only add default color graphic for the respective collider used

…us in actor args

only add default color graphic for the respective collider used
@github-actions github-actions bot added the bug This issue describes undesirable, incorrect, or unexpected behavior label Apr 20, 2024
Copy link

cloudflare-pages bot commented Apr 20, 2024

Deploying excaliburjs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9704aa6
Status: ✅  Deploy successful!
Preview URL: https://0f7e8a3e.excaliburjs.pages.dev
Branch Preview URL: https://fix-strictly-type-actor-coll.excaliburjs.pages.dev

View logs

@eonarheim eonarheim merged commit 887b6b6 into main May 28, 2024
7 of 8 checks passed
@eonarheim eonarheim deleted the fix/strictly-type-actor-collider-args branch May 28, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants