diff options
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/Recipe.ts | 8 |
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 | ||
60 | export default class Recipe implements IRecipe { | 65 | export 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) { |