@sap-devx/guided-development-types
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -14,13 +14,40 @@ import { IAction, ICommandAction, IExecuteAction, IFileAction, ISnippetAction, CommandActionParams, ExecuteActionParams, SnippetActionParams, FileActionParams } from "@sap-devx/bas-platform-types"; | ||
} | ||
export interface IItemContext<T> { | ||
export interface IItemContext { | ||
project: string; | ||
params?: T; | ||
} | ||
export interface IItemAction<T, K extends IAction> { | ||
export interface IItemAction { | ||
name: string; | ||
title?: string; | ||
action: K; | ||
contexts?: IItemContext<T>[]; | ||
action: IAction; | ||
contexts?: IItemContext[]; | ||
} | ||
export declare type ItemAction = IItemAction<CommandActionParams, ICommandAction> | IItemAction<ExecuteActionParams, IExecuteAction> | IItemAction<SnippetActionParams, ISnippetAction> | IItemAction<FileActionParams, IFileAction>; | ||
export interface IItemCommandContext extends IItemContext { | ||
params?: CommandActionParams; | ||
} | ||
export interface IItemCommandAction extends IItemAction { | ||
action: ICommandAction; | ||
contexts?: IItemCommandContext[]; | ||
} | ||
export interface IItemExecuteContext extends IItemContext { | ||
params?: ExecuteActionParams; | ||
} | ||
export interface IItemExecuteAction extends IItemAction { | ||
action: IExecuteAction; | ||
contexts?: IItemExecuteContext[]; | ||
} | ||
export interface IItemSnippetContext extends IItemContext { | ||
context?: SnippetActionParams; | ||
} | ||
export interface IItemSnippetAction extends IItemAction { | ||
action: ISnippetAction; | ||
contexts?: IItemSnippetContext[]; | ||
} | ||
export interface IItemFileContext extends IItemContext { | ||
uri?: FileActionParams; | ||
} | ||
export interface IItemFileAction extends IItemAction { | ||
action: IFileAction; | ||
contexts?: IItemFileContext[]; | ||
} | ||
export declare type ItemAction = IItemCommandAction | IItemExecuteAction | IItemSnippetAction | IItemFileAction; | ||
export interface IItem { | ||
@@ -27,0 +54,0 @@ id: string; |
{ | ||
"name": "@sap-devx/guided-development-types", | ||
"publisher": "SAPOSS", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"author": "", | ||
@@ -6,0 +6,0 @@ "license": "Apache-2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3536
79