Skip to content

Commit 7b25d6b

Browse files
committed
swich back to any type to prevent a breaking change
1 parent 09c52e4 commit 7b25d6b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
3232
- `<NodeContent />`
3333
- prevent start of a react flow drag action of a node when user clicks in the node menu section
3434

35+
### Deprecated
36+
37+
- `<CodeEditor />`
38+
- `onChange` property: support for `(v: any) => void` type will be exchanged to more specific `(v: string) => void`
39+
3540
## [24.3.0] - 2025-06-05
3641

3742
### Added

src/extensions/codemirror/CodeMirror.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ export interface CodeEditorProps extends TestableComponent {
5353
/**
5454
* Handler method to receive onChange events.
5555
* As input the new value is given.
56+
* @deprecated (v25) use `(v: string) => void` in future
5657
*/
57-
onChange?: (v: string) => void;
58+
onChange?: (v: any) => void;
5859
/**
5960
* Called when the focus status changes
6061
*/

0 commit comments

Comments
 (0)