melonJS
melonJS copied to clipboard
Type errors and missing properties
Describe the bug
When I type checked my files, I noticed quite a few type errors due to inconsistent typings. For example, Renderable's body references the JavaScript DOM document.body
type because the type from physics/body.js
is not imported.
To Reproduce (Example)
- Create an
Entity
. - Add the
Entity
togame.world
with theaddChild
method. - Type check the file,
Entity.body
does not implementRenderable.body
.
Expected behavior No type errors for the action.
Version:
- melonJS Version: 14.3.0