Skip to content

Typings for Form#on and FormEditor#on are incorrect #159

Closed
@nikku

Description

@nikku

Describe the Bug

We current expose type definitions for Form#on and FormEditor#on that require users to use a third priority=number argument. We should fix our type definitions to allow both forms, two arg and three argument invocations to the list:

form.on('change', function(event) { });
form.on('change', 500, function(event) { });

Expected Behavior

As a user I'd like to use the simple form of registering for events. That form is referenced and documented, too.

Environment

  • Host (Browser/Node version), if applicable: any
  • OS: Windows
  • Library version: v0.4.1

Reported via Camunda Cloud Devs.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationeditoruxviewer

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions