-
Notifications
You must be signed in to change notification settings - Fork 126
Typings for Form#on
and FormEditor#on
are incorrect
#159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Related to microsoft/TypeScript#25590 |
Sorry if this is not a good way of handling this, but would something like this take care of this issue? Add the following typedef's
then create a private definition (#onEvent) for the on method and assign (this.on = #onEvent) in the constructor. This will result in the overload being typed correctly in Typescript and in the IDE
|
in my PR its not accepting the #onEvent private class method, I could just change it to _onEvent ? I have the same version of all libraries and it compiles and tests fine on my local machine, but the testing environment on CI is failing on the # character. |
This would fix it, indeed. Please change |
Describe the Bug
We current expose type definitions for
Form#on
andFormEditor#on
that require users to use a thirdpriority=number
argument. We should fix our type definitions to allow both forms, two arg and three argument invocations to the list: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
Reported via Camunda Cloud Devs.
The text was updated successfully, but these errors were encountered: