-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
fix(TS): ITextBehaviour enterEditing type #9075
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense
Needed when calling the method imperatively
We cab still pass the same object to the event because the fire method passes an empty object anyways |
The type would be different, the passed object would be of type |
It doesn't matter Line 177 in 2a484bf
|
|
I know |
I am meticulous only because I was instructed to keep type PRs pure |
Aahh so you were suggesting to change the event type to be
For instance, here by "pure" you mean keeping the PR type-only without runtime JS changes? I can't every time have to guess what's in your mind. For me "pure" has a different meaning, typically associated with "pure functions", i.e. without side effects. |
I looked again at the code fabric.js/src/EventTypeDefs.ts Lines 180 to 193 in d0d98db
|
Very very minor change. The event was type correctly:
'editing:entered': never | { e: TPointerEvent }
, but the method requirede
to be defined.