From 78931badaab29741d91395edc4a06ac536d3286b Mon Sep 17 00:00:00 2001 From: Gusztav Szikszai Date: Sun, 9 Sep 2018 10:43:29 +0200 Subject: [PATCH] Update README. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3bf8013..d76f35a 100644 --- a/README.md +++ b/README.md @@ -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" } ``` @@ -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) } } @@ -69,7 +69,7 @@ The following properties are available: onChange - Function(String, Void) + Function(String, a) This is called when the content changes. @@ -80,7 +80,7 @@ The following properties are available: loadingContent - Function(String, Void) + Html This is shown until the all the files have loaded and editor is ready. @@ -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 } }