Jump to content

Class: Weapon, Method: fire(), is requiring first parameter when using typescript


erest0r
 Share

Recommended Posts

Hi, from time to time you can find small problem like this in typescript definitions in phaser.d.ts. In this case you can change it from:

fire(from: any, x?: number, y?: number): boolean;

to

fire(from?: any, x?: number, y?: number): boolean;

 and parameter becames optional.

 You can report it on GitHub, so it gets corrected in next Phaser versions.

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...