mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Merge pull request #2123 from clark-stevenson/dev
Typescript definition updates.
This commit is contained in:
commit
53ed1c1219
1 changed files with 51 additions and 47 deletions
6
typescript/phaser.d.ts
vendored
6
typescript/phaser.d.ts
vendored
|
@ -3575,6 +3575,10 @@ declare module Phaser {
|
|||
}
|
||||
}
|
||||
|
||||
interface PluginConstructorOf<T> {
|
||||
new (...parameters: any[]): T;
|
||||
}
|
||||
|
||||
class PluginManager implements IStateCycle {
|
||||
|
||||
constructor(game: Phaser.Game);
|
||||
|
@ -3582,7 +3586,7 @@ declare module Phaser {
|
|||
game: Phaser.Game;
|
||||
plugins: Phaser.Plugin[];
|
||||
|
||||
add(plugin: Phaser.Plugin | typeof Phaser.Plugin, ...parameter: any[]): Phaser.Plugin;
|
||||
add<T extends Phaser.Plugin>(plugin: PluginConstructorOf<T>, ...parameters: any[]): T;
|
||||
destroy(): void;
|
||||
postRender(): void;
|
||||
postUpdate(): void;
|
||||
|
|
Loading…
Reference in a new issue