32 lines
885 B
TypeScript
32 lines
885 B
TypeScript
|
import { Result } from "neverthrow";
|
||
|
import { FxError } from "../error";
|
||
|
export interface TreeItem {
|
||
|
commandId: string;
|
||
|
label: string;
|
||
|
callback?: (args: any) => Promise<Result<null, FxError>>;
|
||
|
parent?: TreeCategory | string;
|
||
|
contextValue?: string;
|
||
|
icon?: string;
|
||
|
subTreeItems?: TreeItem[];
|
||
|
tooltip?: {
|
||
|
value: string;
|
||
|
isMarkdown: boolean;
|
||
|
};
|
||
|
description?: string;
|
||
|
isCustom?: boolean;
|
||
|
expanded?: boolean;
|
||
|
}
|
||
|
export interface TreeProvider {
|
||
|
refresh: (tree: TreeItem[]) => Promise<Result<null, FxError>>;
|
||
|
add: (tree: TreeItem[]) => Promise<Result<null, FxError>>;
|
||
|
remove: (tree: TreeItem[]) => Promise<Result<null, FxError>>;
|
||
|
}
|
||
|
export declare enum TreeCategory {
|
||
|
GettingStarted = 0,
|
||
|
Account = 1,
|
||
|
Feedback = 2,
|
||
|
Project = 3,
|
||
|
Provision = 4,
|
||
|
Environment = 5
|
||
|
}
|
||
|
//# sourceMappingURL=tree.d.ts.map
|