heim 0.1.0-alpha.4 → 0.1.0-alpha.5

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 +4 -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.5",
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
@@ -210,7 +210,7 @@ declare global {
210
210
  default?: readonly string[];
211
211
  };
212
212
 
213
- type InputValue<T extends Input> = T extends { type: "text" }
213
+ type AnswerValue<T extends Input> = T extends { type: "text" }
214
214
  ? string
215
215
  : T extends { type: "confirm" }
216
216
  ? boolean
@@ -232,12 +232,12 @@ declare global {
232
232
  ? V[]
233
233
  : never;
234
234
 
235
- type ValuesContext<I extends Inputs> = {
235
+ type AnswersContext<I extends Inputs> = {
236
236
  /**
237
237
  * The resolved answers to the declared inputs. Answers are stored on installation and reused on later runs,
238
238
  * so updates run unattended.
239
239
  */
240
- values: { [K in keyof I]: InputValue<I[K]> };
240
+ answers: { [K in keyof I]: AnswerValue<I[K]> };
241
241
  };
242
242
 
243
243
  type UserInterface = {
@@ -265,7 +265,7 @@ declare global {
265
265
  DataContext &
266
266
  ConfigContext &
267
267
  SystemContext &
268
- ValuesContext<I> &
268
+ AnswersContext<I> &
269
269
  CryptoContext;
270
270
 
271
271
  type Backup = {