npm package diff
Package: @forge/cli-shared
Versions: 6.6.1-next.5 - 6.6.1-next.6
File: package/out/ui/ui.d.ts
Index: package/out/ui/ui.d.ts
===================================================================
--- package/out/ui/ui.d.ts
+++ package/out/ui/ui.d.ts
@@ -3,11 +3,14 @@
export interface Prompt {
confirm(message: string): Promise<boolean>;
promptForText(message: string, defaultValue?: string): Promise<string>;
promptForSecret(message: string): Promise<string>;
- promptForList(message: string, choices: string[], config?: {
- format?: (choices: string) => string;
- }): Promise<string>;
+ promptForList<T extends string>(message: string, choices: T[], config?: {
+ format?: (choice: T) => string;
+ }): Promise<T>;
+ promptForMultiSelectList<T extends string>(message: string, choices: T[], config?: {
+ format?: (choice: T) => string;
+ }): Promise<T[]>;
promptForTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number[]>;
promptForSingleChoiceTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number>;
}
export declare type TableCell = string | boolean | null | undefined;