aboutsummaryrefslogtreecommitdiffstats
path: root/src/models
diff options
context:
space:
mode:
authorLibravatar Muhamed <unknown>2022-11-08 07:40:02 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-11-08 17:25:27 +0530
commit570d26baf9e4ad87a8c0752b5edfb5c441bf9d80 (patch)
treeee0a0e6bec7d10ec438b5269537905fee80c377b /src/models
parentrefactor: remove toggle component's duplicate (diff)
downloadferdium-app-570d26baf9e4ad87a8c0752b5edfb5c441bf9d80.tar.gz
ferdium-app-570d26baf9e4ad87a8c0752b5edfb5c441bf9d80.tar.zst
ferdium-app-570d26baf9e4ad87a8c0752b5edfb5c441bf9d80.zip
fix: slack issue caused by input TS conversion
Diffstat (limited to 'src/models')
-rw-r--r--src/models/Recipe.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/models/Recipe.ts b/src/models/Recipe.ts
index 6911f7301..8b4c7a8ba 100644
--- a/src/models/Recipe.ts
+++ b/src/models/Recipe.ts
@@ -55,6 +55,11 @@ export interface IRecipe {
55 readonly modifyRequestHeaders?: null | Function; 55 readonly modifyRequestHeaders?: null | Function;
56 readonly knownCertificateHosts?: null | Function; 56 readonly knownCertificateHosts?: null | Function;
57 readonly events?: null | { (key: string): string }; 57 readonly events?: null | { (key: string): string };
58
59 // TODO - [TS DEBT] Need to check if below properties are needed and where is inherited / implemented from
60 author?: string[];
61 hasDarkMode?: boolean;
62 validateUrl?: (url: string) => boolean;
58} 63}
59 64
60export default class Recipe implements IRecipe { 65export default class Recipe implements IRecipe {
@@ -102,6 +107,9 @@ export default class Recipe implements IRecipe {
102 // TODO: Is this being used? 107 // TODO: Is this being used?
103 local = false; 108 local = false;
104 109
110 // TODO - [TS DEBT] introduced to address missing function but need to check how validateUrl is inherited / implemented in recipe
111 validateUrl?: (url: string) => boolean;
112
105 // TODO: Need to reconcile which of these are optional/mandatory 113 // TODO: Need to reconcile which of these are optional/mandatory
106 constructor(data: RecipeData) { 114 constructor(data: RecipeData) {
107 if (!data) { 115 if (!data) {