Skip to content

Typedefs for new Phaser.Time.Timeline don't show it extending eventEmitter #6673

@ghclark2

Description

@ghclark2

Version

  • Phaser Version: 3.70
  • Operating system: Windows
  • Browser: Chrome

Description

Typedefs for new Phaser.Time.Timeline don't show it extending eventEmitter. Eslint will give the following error with the code below: Property 'on' does not exist on type 'Timeline'.

Eslint will also give an error if you try to create an empty timeline: 'An argument for 'config' was not provided'. Config argument should be optional.

Example Test Code

const timeline = this.scene.add.timeline()
timeline.on('complete', () => {doSomething})

Additional Information

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions