Closed muyaszed closed 6 months ago
hi @muyaszed appreciating the pull request, but we cannot merge this, as It will break backward compatiliby and this "just" to fix a typing issue with TS.
is a proper way not to add proper typing for Body in a dedicated .ts file, that would then be added as a source directory when generating the .ts file(s) ?
something like :
declare class Body {
constructor(ancestor: Renderable, shapes: Polygon, onBodyUpdate?: Function);
ancestor: Renderable;
bounds: Bounds;
...
setStatic(isStatic?: boolean): this;
addShape(shape:Polygon) : number;
...
}
Yeah sure no problem this is just to start something which we could progress towards the better solution. I would take a look at the suggested code. Thanks for the reply
closing this one, duplicate with #1199
Description of change
Change the Body class name to BodyObject
Please refer issue -> https://github.com/melonjs/melonJS/issues/1199
Merge Checklist
npm run build
)npm run lint
)npm run test
)