Closed
Description
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.