From 441c412c1c86d1386a5746f3a0b7fa8316a7bca9 Mon Sep 17 00:00:00 2001 From: Fabiano Taioli Date: Sun, 17 Feb 2019 18:17:41 +0100 Subject: [PATCH] fix syntax --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 074a868..775a679 100644 --- a/README.md +++ b/README.md @@ -648,7 +648,7 @@ Let's begin by defining a view function that creates a header and a button. ```js -function* counterListView(): { +function* counterListView() { yield h1("Counters"); const { click: addCounter } = yield button({ class: "btn btn-primary" }, "Add counter"); return { addCounter }; @@ -661,7 +661,7 @@ function receives the return value from the view function. ```js const counterList = modelView(counterListModel, counterListView); -const counterListModel = fgo(function*({addCounter, listOut}): { +const counterListModel = fgo(function*({addCounter, listOut}) { const nextId = yield sample(scanS(add, 2, addCounter.mapTo(1))); const appendCounterFn = map( (id) => (ids: number[]) => ids.concat([id]), @@ -1038,4 +1038,4 @@ Continuously run the tests with ```sh npm run test-watch -``` \ No newline at end of file +```