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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +8 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heim",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.1.0-alpha.6",
4
4
  "description": "The library to create heim.ts files for heim apps.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
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 InputValue<T extends Input> = T extends { type: "text" }
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 ValuesContext<I extends Inputs> = {
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
- values: { [K in keyof I]: InputValue<I[K]> };
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
- ValuesContext<I> &
272
+ AnswersContext<I> &
269
273
  CryptoContext;
270
274
 
271
275
  type Backup = {