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.
- package/package.json +1 -1
- package/types.d.ts +4 -4
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -210,7 +210,7 @@ declare global {
|
|
|
210
210
|
default?: readonly string[];
|
|
211
211
|
};
|
|
212
212
|
|
|
213
|
-
type
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
268
|
+
AnswersContext<I> &
|
|
269
269
|
CryptoContext;
|
|
270
270
|
|
|
271
271
|
type Backup = {
|