Skip to content

Commit 340d571

Browse files
committed
Correct PluginManager.add first parameter.
`PluginManager.add` accepts both plugin instances and plugin prototypes. The next version of TypeScript will support unions, at which time the type should be updated to `Phaser.Plugin|typeof Phaser.Plugin`. Until then we have to settle for `any` type.
1 parent 6c7c0cb commit 340d571

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

typescript/phaser.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3161,7 +3161,7 @@ declare module Phaser {
31613161
game: Phaser.Game;
31623162
plugins: Phaser.Plugin[];
31633163

3164-
add(plugin: Phaser.Plugin, ...parameter: any[]): Phaser.Plugin;
3164+
add(plugin: any, ...parameter: any[]): Phaser.Plugin;
31653165
destroy(): void;
31663166
postRender(): void;
31673167
postUpdate(): void;

0 commit comments

Comments
 (0)