scniro / react-codemirror2

Codemirror integrated components for React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Defining the onChange type independently

tolgaand opened this issue · comments

When using Next(typescript), I found that I couldn't use the onChange method's type when I wanted to use it.
Screen Shot 2022-09-17 at 11 25 46

When I examined the codes, I saw that the type of the onChange method is defined in the onChange method.
Screen Shot 2022-09-17 at 11 27 07

I would like to make a small update to the project and open a Pull request. Can I get a pull request?
(this is my first issue, if I'm doing something wrong, I'm sorry)