We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently the onChange on react-codemirror is:
onChange
react-codemirror
onChange?: (instance: CodeMirror.Editor, change: CodeMirror.EditorChangeLinkedList[]) => void;
However, when logging the parameter change I get:
change
"{"from":{"line":1,"ch":12,"sticky":null,"xRel":1,"outside":1},"to":{"line":1,"ch":12,"sticky":null,"xRel":1,"outside":1},"text":["a"],"removed":[""],"origin":"+input"}
Which make sense since it its a linked list. The type for the parameter change should simply be CodeMirror.EditorChangeLinkedList.
CodeMirror.EditorChangeLinkedList
The text was updated successfully, but these errors were encountered:
#92 Fix type definition of onChange
ee66177
@caiorcferreira Upgrade + @uiw/[email protected]
+ @uiw/[email protected]
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Currently the
onChange
onreact-codemirror
is:However, when logging the parameter
change
I get:Which make sense since it its a linked list. The type for the parameter
change
should simply beCodeMirror.EditorChangeLinkedList
.The text was updated successfully, but these errors were encountered: