Skip to content

Commit 8f3f759

Browse files
committed
Merge pull request phaserjs#1570 from Bilge/patch-3
Compact overloaded constructor using union syntax.
2 parents ad9b8ae + ea9fd08 commit 8f3f759

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

typescript/phaser.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,8 +1126,7 @@ declare module Phaser {
11261126

11271127
class Game {
11281128

1129-
constructor(width?: string, height?: string, renderer?: number, parent?: any, state?: any, transparent?: boolean, antialias?: boolean, physicsConfig?: any);
1130-
constructor(width?: number, height?: number, renderer?: number, parent?: any, state?: any, transparent?: boolean, antialias?: boolean, physicsConfig?: any);
1129+
constructor(width?: number|string, height?: number|string, renderer?: number, parent?: any, state?: any, transparent?: boolean, antialias?: boolean, physicsConfig?: any);
11311130
constructor(config: IGameConfig);
11321131

11331132
add: Phaser.GameObjectFactory;

0 commit comments

Comments
 (0)