mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Allow debug.line to be used without error TS2346
When calling debug.line('Any string'); the TypeScript compiler give error TS2346 because there are no parameters in the method definition. This creates a dummy parameter which allows the same functionality without the compiler error.
This commit is contained in:
parent
3d6b1a3b7e
commit
55214fe2df
1 changed files with 1 additions and 1 deletions
2
typescript/phaser.d.ts
vendored
2
typescript/phaser.d.ts
vendored
|
@ -5391,7 +5391,7 @@ declare module Phaser {
|
|||
inputInfo(x: number, y: number, color?: string): void;
|
||||
lineInfo(line: Phaser.Line, x: number, y: number, color?: string): void;
|
||||
key(key: Phaser.Key, x?: number, y?: number, color?: string): void;
|
||||
line(): void;
|
||||
line(...args: string[]): void;
|
||||
preUpdate(): void;
|
||||
pixel(x: number, y: number, color?: string, size?: number): void;
|
||||
pointer(pointer: Phaser.Pointer, hideIfUp?: boolean, downColor?: string, upColor?: string, color?: string): void;
|
||||
|
|
Loading…
Add table
Reference in a new issue