You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when the listener is actually fired during runtime, the object I receive as the ranges parameter does not match the type outlined above. It is:
It's an object with a property ranges, which in turn is an array of ISetSelectionOptions.
I am using:
react-codemirror2: 3.0.3
codemirror: 5.31.0
The text was updated successfully, but these errors were encountered:
This should now be fixed with the 3.0.7 release. I've added this my list of issues to take up with @types/codemirror as there are quite a few incorrect signatures that I've need to hack my way around. E.g. this is what I have to work with from them...
According to the type information provided by
react-codemirror2
, theonSelection
callback is defined as follows:onSelection?: (editor: IInstance, ranges: ISetSelectionOptions) => void;
... where
ISetSelectionOptions
is defined as:However, when the listener is actually fired during runtime, the object I receive as the
ranges
parameter does not match the type outlined above. It is:It's an object with a property
ranges
, which in turn is an array ofISetSelectionOptions
.I am using:
react-codemirror2
: 3.0.3codemirror
: 5.31.0The text was updated successfully, but these errors were encountered: