aboutsummaryrefslogtreecommitdiffstats
path: root/src/models
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-05-14 08:50:02 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-05-14 08:50:02 -0500
commit8b1bfc356c3182c481394251f3ceeb902f2baec3 (patch)
tree5beeee82ccc2981cf989bb9e192bc3c1f53f1ae9 /src/models
parent6.0.0-nightly.34 [skip ci] (diff)
downloadferdium-app-8b1bfc356c3182c481394251f3ceeb902f2baec3.tar.gz
ferdium-app-8b1bfc356c3182c481394251f3ceeb902f2baec3.tar.zst
ferdium-app-8b1bfc356c3182c481394251f3ceeb902f2baec3.zip
Typescript conversion
Diffstat (limited to 'src/models')
-rw-r--r--src/models/RecipePreview.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/models/RecipePreview.ts b/src/models/RecipePreview.ts
index fb8cb3e3e..53dd18f2c 100644
--- a/src/models/RecipePreview.ts
+++ b/src/models/RecipePreview.ts
@@ -4,6 +4,7 @@ interface IRecipePreview {
4 icon: string; 4 icon: string;
5 featured: boolean; 5 featured: boolean;
6 aliases: string[]; 6 aliases: string[];
7 isDevRecipe: boolean;
7} 8}
8 9
9export default class RecipePreview { 10export default class RecipePreview {
@@ -17,6 +18,8 @@ export default class RecipePreview {
17 18
18 aliases: string[] = []; 19 aliases: string[] = [];
19 20
21 isDevRecipe: boolean = false;
22
20 constructor(data: IRecipePreview) { 23 constructor(data: IRecipePreview) {
21 if (!data) { 24 if (!data) {
22 throw new Error('RecipePreview config not valid'); 25 throw new Error('RecipePreview config not valid');