Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit 78931ba

Browse files
committed
Update README.
1 parent 2e42588 commit 78931ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To use the component just add this to the `dependencies` field of the projects
88
```
99
"mint-codemirror": {
1010
"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"
1212
}
1313
```
1414

@@ -17,8 +17,8 @@ To get the basic component without any modes and the default theme, just add the
1717

1818
```
1919
component Main {
20-
fun onChange (value : String) : Void {
21-
do {
20+
fun onChange (value : String) : Promise(Never, Void) {
21+
sequence {
2222
Debug.log(value)
2323
}
2424
}
@@ -69,7 +69,7 @@ The following properties are available:
6969
<code>onChange</code>
7070
</td>
7171
<td style="white-space: nowrap;">
72-
<code>Function(String, Void)</code>
72+
<code>Function(String, a)</code>
7373
</td>
7474
<td>
7575
This is called when the content changes.
@@ -80,7 +80,7 @@ The following properties are available:
8080
<code>loadingContent</code>
8181
</td>
8282
<td>
83-
<code>Function(String, Void)</code>
83+
<code>Html</code>
8484
</td>
8585
<td>
8686
This is shown until the all the files have loaded and editor is ready.
@@ -145,7 +145,7 @@ component Main {
145145
value = "def print\n puts 'Hello World!'\nend"
146146
}
147147
148-
fun onChange (value : String) : Void {
148+
fun onChange (value : String) : Promise(Never, Void) {
149149
next { state | value = value }
150150
}
151151

0 commit comments

Comments
 (0)