@@ -8,7 +8,7 @@ To use the component just add this to the `dependencies` field of the projects
8
8
```
9
9
"mint-codemirror": {
10
10
"repository": "https://github.com/mint-lang/mint-codemirror",
11
- "constraint": "1 .0.0 <= v < 2 .0.0"
11
+ "constraint": "3 .0.0 <= v < 4 .0.0"
12
12
}
13
13
```
14
14
@@ -17,8 +17,8 @@ To get the basic component without any modes and the default theme, just add the
17
17
18
18
```
19
19
component Main {
20
- fun onChange (value : String) : Void {
21
- do {
20
+ fun onChange (value : String) : Promise(Never, Void) {
21
+ sequence {
22
22
Debug.log(value)
23
23
}
24
24
}
@@ -69,7 +69,7 @@ The following properties are available:
69
69
<code>onChange</code>
70
70
</td>
71
71
<td style="white-space: nowrap;">
72
- <code>Function(String, Void )</code>
72
+ <code>Function(String, a )</code>
73
73
</td>
74
74
<td>
75
75
This is called when the content changes.
@@ -80,7 +80,7 @@ The following properties are available:
80
80
<code>loadingContent</code>
81
81
</td>
82
82
<td>
83
- <code>Function(String, Void) </code>
83
+ <code>Html </code>
84
84
</td>
85
85
<td>
86
86
This is shown until the all the files have loaded and editor is ready.
@@ -145,7 +145,7 @@ component Main {
145
145
value = "def print\n puts 'Hello World!'\nend"
146
146
}
147
147
148
- fun onChange (value : String) : Void {
148
+ fun onChange (value : String) : Promise(Never, Void) {
149
149
next { state | value = value }
150
150
}
151
151
0 commit comments