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

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Sep 9, 2018
1 parent 2e42588 commit 78931ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To use the component just add this to the `dependencies` field of the projects
```
"mint-codemirror": {
"repository": "https://github.com/mint-lang/mint-codemirror",
"constraint": "1.0.0 <= v < 2.0.0"
"constraint": "3.0.0 <= v < 4.0.0"
}
```

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

```
component Main {
fun onChange (value : String) : Void {
do {
fun onChange (value : String) : Promise(Never, Void) {
sequence {
Debug.log(value)
}
}
Expand Down Expand Up @@ -69,7 +69,7 @@ The following properties are available:
<code>onChange</code>
</td>
<td style="white-space: nowrap;">
<code>Function(String, Void)</code>
<code>Function(String, a)</code>
</td>
<td>
This is called when the content changes.
Expand All @@ -80,7 +80,7 @@ The following properties are available:
<code>loadingContent</code>
</td>
<td>
<code>Function(String, Void)</code>
<code>Html</code>
</td>
<td>
This is shown until the all the files have loaded and editor is ready.
Expand Down Expand Up @@ -145,7 +145,7 @@ component Main {
value = "def print\n puts 'Hello World!'\nend"
}
fun onChange (value : String) : Void {
fun onChange (value : String) : Promise(Never, Void) {
next { state | value = value }
}
Expand Down

0 comments on commit 78931ba

Please sign in to comment.