@microsoft/teamsfx-api
Advanced tools
Comparing version 0.2.2-alpha.2bc1623e.0 to 0.2.2-alpha.45ab66c2.0
@@ -35,12 +35,2 @@ import { Result } from "neverthrow"; | ||
communicate: (msg: DialogMsg) => Promise<DialogMsg>; | ||
/** | ||
* Create a new progress bar with the specified title and the number of steps. It will | ||
* return a progress handler and you can use this handler to control the detail message | ||
* of it. | ||
* ${currentStep} will increase from 0 to ${totalSteps}. | ||
* @param title the title of this progress bar. | ||
* @param totalSteps the number of steps. | ||
* @returns the handler of a progress bar | ||
*/ | ||
createProgressBar: (title: string, totalSteps: number) => IProgressHandler; | ||
} | ||
@@ -50,25 +40,2 @@ /** | ||
*/ | ||
interface IProgressHandler { | ||
/** | ||
* Start this progress bar. After calling it, the progress bar will be seen to users with | ||
* ${currentStep} = 0 and ${detail} = detail. | ||
* @param detail the detail message of the next work. | ||
*/ | ||
start: (detail?: string) => Promise<void>; | ||
/** | ||
* Update the progress bar's message. After calling it, the progress bar will be seen to | ||
* users with ${currentStep}++ and ${detail} = detail. | ||
* This func must be called after calling start(). | ||
* @param detail the detail message of the next work. | ||
*/ | ||
next: (detail?: string) => Promise<void>; | ||
/** | ||
* End the progress bar. After calling it, the progress bar will disappear. This handler | ||
* can be reused after calling end(). | ||
*/ | ||
end: () => Promise<void>; | ||
} | ||
/** | ||
* @deprecated | ||
*/ | ||
export declare enum MsgLevel { | ||
@@ -92,9 +59,4 @@ Info = "Info", | ||
export declare enum QuestionType { | ||
Text = "Text", | ||
Radio = "radio", | ||
SelectFolder = "SelectFolder", | ||
OpenFolder = "OpenFolder", | ||
ExecuteCmd = "ExecuteCmd", | ||
OpenExternal = "OpenExternal", | ||
Confirm = "Confirm", | ||
UpdateGlobalState = "UpdateGlobalState" | ||
@@ -155,3 +117,2 @@ } | ||
} | ||
export {}; | ||
//# sourceMappingURL=dialog.d.ts.map |
@@ -20,9 +20,4 @@ // Copyright (c) Microsoft Corporation. | ||
(function (QuestionType) { | ||
QuestionType["Text"] = "Text"; | ||
QuestionType["Radio"] = "radio"; | ||
QuestionType["SelectFolder"] = "SelectFolder"; | ||
QuestionType["OpenFolder"] = "OpenFolder"; | ||
QuestionType["ExecuteCmd"] = "ExecuteCmd"; | ||
QuestionType["OpenExternal"] = "OpenExternal"; | ||
QuestionType["Confirm"] = "Confirm"; | ||
QuestionType["UpdateGlobalState"] = "UpdateGlobalState"; | ||
@@ -29,0 +24,0 @@ })(QuestionType = exports.QuestionType || (exports.QuestionType = {})); |
{ | ||
"name": "@microsoft/teamsfx-api", | ||
"version": "0.2.2-alpha.2bc1623e.0", | ||
"version": "0.2.2-alpha.45ab66c2.0", | ||
"description": "teamsfx framework api", | ||
@@ -61,3 +61,3 @@ "main": "build/index.js", | ||
}, | ||
"gitHead": "cfb9d15df68a6b25d5e730a83277a3b48a5a0c06", | ||
"gitHead": "c37de33bf7e3cd1bb7f0bd78285fd9e4a87e50bd", | ||
"publishConfig": { | ||
@@ -64,0 +64,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
181119
3022