diff options
Diffstat (limited to 'src/models/Recipe.ts')
-rw-r--r-- | src/models/Recipe.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/models/Recipe.ts b/src/models/Recipe.ts index a03d3447f..35e8d4979 100644 --- a/src/models/Recipe.ts +++ b/src/models/Recipe.ts | |||
@@ -50,11 +50,15 @@ export interface IRecipe { | |||
50 | partition: string; | 50 | partition: string; |
51 | local: boolean; | 51 | local: boolean; |
52 | 52 | ||
53 | // eslint-disable-next-line @typescript-eslint/ban-types | ||
53 | readonly overrideUserAgent?: null | Function; | 54 | readonly overrideUserAgent?: null | Function; |
55 | // eslint-disable-next-line @typescript-eslint/ban-types | ||
54 | readonly buildUrl?: null | Function; | 56 | readonly buildUrl?: null | Function; |
57 | // eslint-disable-next-line @typescript-eslint/ban-types | ||
55 | readonly modifyRequestHeaders?: null | Function; | 58 | readonly modifyRequestHeaders?: null | Function; |
59 | // eslint-disable-next-line @typescript-eslint/ban-types | ||
56 | readonly knownCertificateHosts?: null | Function; | 60 | readonly knownCertificateHosts?: null | Function; |
57 | readonly events?: null | { (key: string): string }; | 61 | readonly events?: null | ((key: string) => string); |
58 | 62 | ||
59 | // TODO: [TS DEBT] Need to check if below properties are needed and where is inherited / implemented from | 63 | // TODO: [TS DEBT] Need to check if below properties are needed and where is inherited / implemented from |
60 | author?: string[]; | 64 | author?: string[]; |
@@ -132,7 +136,7 @@ export default class Recipe implements IRecipe { | |||
132 | this.id = ifUndefined<string>(data.id, this.id); | 136 | this.id = ifUndefined<string>(data.id, this.id); |
133 | this.name = ifUndefined<string>(data.name, this.name); | 137 | this.name = ifUndefined<string>(data.name, this.name); |
134 | this.version = ifUndefined<string>(data.version, this.version); | 138 | this.version = ifUndefined<string>(data.version, this.version); |
135 | this.aliases = ifUndefined<Array<string>>(data.aliases, this.aliases); | 139 | this.aliases = ifUndefined<string[]>(data.aliases, this.aliases); |
136 | this.serviceURL = ifUndefined<string>( | 140 | this.serviceURL = ifUndefined<string>( |
137 | data.config.serviceURL, | 141 | data.config.serviceURL, |
138 | this.serviceURL, | 142 | this.serviceURL, |