In this method, we pass parameters, with mandatory and optional
But in this method, passed optional first and then mandatory
remove optional parameter for destinationFrame
calculateProjection(destinationFrame: PIXI.Rectangle, sourceFrame: PIXI.Rectangle, resolution: number, root: boolean): void;
pixi.js version: _e.g. ^5.3.1_It actually does not even compile to me. Can anyone suggest a fix for it?

Perhaps it might be my ts version. I'm using 3.9.7
@MercurialUroboros For quick fix, Goto pixi.js.d.ts:4925 line , and replace destinationFrame? with destinationFrame
calculateProjection(destinationFrame: PIXI.Rectangle, sourceFrame: PIXI.Rectangle, resolution: number, root: boolean): void;
NOTE: it's a Quick fix only to run dev project
Unfortunately, it's not a "solid" quick fix, since I will have to force my teammates to do the same.
Thanks anyway, I think I will just revert typescript version since this issue appears to be there even with 5.2.1.
@MercurialUroboros yes it's not a solid quick fix, or else you can download the total library and make sure this is to available for all your teammates, we wait until pixi.js fix this issue
This is reported in in https://github.com/pixijs/pixi.js/issues/6774
Duplicate so closing. We have a fix already waiting for approval. Sorry for the inconvenience will have a patch out soon.