UNPKG

phaser3-rex-plugins-types

Version:

[![npm](https://img.shields.io/npm/v/phaser3-rex-plugins-types.svg)](https://www.npmjs.com/package/phaser3-rex-plugins-types) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![B

28 lines (16 loc) 999 B
declare module 'phaser3-rex-plugins/plugins/utils/eventemitter/EventEmitterMethods' { export default interface EventEmitterMethods<T extends Phaser.Events.EventEmitter = any> { setEventEmitter(eventEmitter?: T | false, EventEmitterClass?: new () => T): this; destroyEventEmitter(): this; getEventEmitter(): T; on(event: string | symbol, fn: Function, context?: any): this; once(event: string | symbol, fn: Function, context?: any): this; off(event: string | symbol, fn?: Function, context?: any, once?: boolean): this; emit(event: string | symbol, ...args: any[]): this; addListener(event: string | symbol, fn: Function, context?: any): this; removeListener(event: string | symbol, fn?: Function, context?: any, once?: boolean): this; removeAllListeners(event?: string | symbol): this; listenerCount(event: string | symbol): number; listeners(event: string | symbol): Function[]; } }