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

fixed MatterJS type definitions #6746

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lukas-dachtler
Copy link

@lukas-dachtler lukas-dachtler commented Feb 25, 2024

This PR fixes type definitions for MatterJS

Changes:

  • marked updateVelocity as optional parameter
  • included reference for phaser types
  • declared type for onCollideWith

@lukas-dachtler
Copy link
Author

Hi,
I would like to fix a few more inconsistencies but I wasn't able to generate the matter.d.ts file from the provided npm scripts. Do I need to manually update the file or am I missing something?

@photonstorm
Copy link
Collaborator

The types found in matter.d.ts are made by hand, there's no npm script for them.

@lukas-dachtler lukas-dachtler marked this pull request as ready for review March 6, 2024 23:30
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.

None yet

2 participants