scniro / react-codemirror2

Codemirror integrated components for React
MIT License
1.65k stars 192 forks source link

Defining the onChange type independently #290

Open tolgaand opened 1 year ago

tolgaand commented 1 year ago

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)