heim 0.1.0-alpha.4 → 0.1.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types.d.ts +8 -4
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -117,6 +117,10 @@ declare global {
|
|
|
117
117
|
* The license file of the app.
|
|
118
118
|
*/
|
|
119
119
|
license?: LocalizedString4 | string;
|
|
120
|
+
/**
|
|
121
|
+
* The CPU architectures of the app. This is required, if your `compose` field contains a function instead of a static object.
|
|
122
|
+
*/
|
|
123
|
+
supportedArchitectures?: ("amd64" | "arm64" | "riscv64")[];
|
|
120
124
|
/**
|
|
121
125
|
* The minimum version of heim that is required to run the app. This is used to prevent users from installing an app that requires features of a newer version of heim.
|
|
122
126
|
*/
|
|
@@ -210,7 +214,7 @@ declare global {
|
|
|
210
214
|
default?: readonly string[];
|
|
211
215
|
};
|
|
212
216
|
|
|
213
|
-
type
|
|
217
|
+
type AnswerValue<T extends Input> = T extends { type: "text" }
|
|
214
218
|
? string
|
|
215
219
|
: T extends { type: "confirm" }
|
|
216
220
|
? boolean
|
|
@@ -232,12 +236,12 @@ declare global {
|
|
|
232
236
|
? V[]
|
|
233
237
|
: never;
|
|
234
238
|
|
|
235
|
-
type
|
|
239
|
+
type AnswersContext<I extends Inputs> = {
|
|
236
240
|
/**
|
|
237
241
|
* The resolved answers to the declared inputs. Answers are stored on installation and reused on later runs,
|
|
238
242
|
* so updates run unattended.
|
|
239
243
|
*/
|
|
240
|
-
|
|
244
|
+
answers: { [K in keyof I]: AnswerValue<I[K]> };
|
|
241
245
|
};
|
|
242
246
|
|
|
243
247
|
type UserInterface = {
|
|
@@ -265,7 +269,7 @@ declare global {
|
|
|
265
269
|
DataContext &
|
|
266
270
|
ConfigContext &
|
|
267
271
|
SystemContext &
|
|
268
|
-
|
|
272
|
+
AnswersContext<I> &
|
|
269
273
|
CryptoContext;
|
|
270
274
|
|
|
271
275
|
type Backup = {
|