phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
36.94k stars 7.08k forks source link

phaser.d.ts has issue in "separateTiles" method definition (string 1751 symbol 74) #369

Closed wombatbuddy closed 10 years ago

wombatbuddy commented 10 years ago

It's issue in the type declaration of last argument "tile" Existing string: separateTiles(body: Phaser.Physics.Arcade.Body, tile: Array): boolean;

Correct definition: separateTiles(body: Phaser.Physics.Arcade.Body, tile: Array): boolean;

photonstorm commented 10 years ago

You mean like this:

separateTiles(body: Phaser.Physics.Arcade.Body, tile: Array<Phaser.Tile>): boolean; ?

wombatbuddy commented 10 years ago

Yes, (editor hid brackets and the expression in parentheses). I do not know how to copy the code correctly.