From 7d8a47876569c0a80195f9ddea570e967e972b57 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Thu, 15 Nov 2018 12:18:44 +0100 Subject: Remove flow types --- src/models/News.js | 8 ++++---- src/models/Plan.js | 4 ++-- src/models/RecipePreview.js | 8 ++++---- src/models/Service.js | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/models') diff --git a/src/models/News.js b/src/models/News.js index a96e6550f..caf1d70e5 100644 --- a/src/models/News.js +++ b/src/models/News.js @@ -1,10 +1,10 @@ // @flow export default class News { - id: string = ''; - message: string = ''; - type: string = 'primary'; - sticky: bool = false; + id = ''; + message = ''; + type = 'primary'; + sticky = false; constructor(data) { if (!data.id) { diff --git a/src/models/Plan.js b/src/models/Plan.js index e77353824..c7b4a0962 100644 --- a/src/models/Plan.js +++ b/src/models/Plan.js @@ -1,11 +1,11 @@ // @flow export default class Plan { - month: { + month = { id: '', price: 0, } - year: { + year = { id: '', price: 0, } diff --git a/src/models/RecipePreview.js b/src/models/RecipePreview.js index 525a5c4b5..7470d757a 100644 --- a/src/models/RecipePreview.js +++ b/src/models/RecipePreview.js @@ -1,10 +1,10 @@ // @flow export default class RecipePreview { - id: string = ''; - name: string = ''; - icon: string = ''; // TODO: check if this isn't replaced by `icons` - featured: bool = false; + id = ''; + name = ''; + icon = ''; // TODO: check if this isn't replaced by `icons` + featured = false; constructor(data) { if (!data.id) { diff --git a/src/models/Service.js b/src/models/Service.js index bafb3f564..4f8767dbe 100644 --- a/src/models/Service.js +++ b/src/models/Service.js @@ -7,7 +7,7 @@ export default class Service { recipe = ''; webview = null; timer = null; - events: {}; + events = {}; isAttached = false; -- cgit v1.2.3-70-g09d2