@sap-devx/bas-platform-types
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -1,3 +0,3 @@ | ||
import { Uri } from "vscode"; | ||
import { ActionType, IAction, ICommandAction, IExecuteAction, IFileAction, ISnippetAction } from "./interfaces"; | ||
/// <reference types="vscode" /> | ||
import { ActionType, IAction, ICommandAction, IExecuteAction, IFileAction, ISnippetAction, CommandActionParams, ExecuteActionParams, SnippetActionParams, FileActionParams } from "./interfaces"; | ||
declare abstract class Action implements IAction { | ||
@@ -8,4 +8,4 @@ actionType: ActionType | undefined; | ||
export declare class ExecuteAction extends Action implements IExecuteAction { | ||
executeAction: (params?: any[]) => Thenable<any>; | ||
params?: any[]; | ||
executeAction: (params?: ExecuteActionParams) => Thenable<any>; | ||
params?: ExecuteActionParams; | ||
constructor(); | ||
@@ -15,3 +15,3 @@ } | ||
name: string; | ||
params?: any[]; | ||
params?: CommandActionParams; | ||
constructor(); | ||
@@ -22,9 +22,9 @@ } | ||
snippetName: string; | ||
context: any; | ||
context: SnippetActionParams; | ||
constructor(); | ||
} | ||
export declare class FileAction extends Action implements IFileAction { | ||
uri: Uri; | ||
uri: FileActionParams; | ||
constructor(); | ||
} | ||
export {}; |
@@ -13,4 +13,4 @@ "use strict"; | ||
this.actionType = interfaces_1.ActionType.Execute; | ||
this.executeAction = (params) => { return Promise.resolve(); }; | ||
this.params = []; | ||
this.executeAction = (params) => { return Promise.resolve(); }; | ||
} | ||
@@ -33,4 +33,4 @@ } | ||
this.contributorId = ""; | ||
this.snippetName = ""; | ||
this.context = ""; | ||
this.snippetName = ""; | ||
} | ||
@@ -37,0 +37,0 @@ } |
@@ -9,8 +9,16 @@ import * as vscode from "vscode"; | ||
} | ||
export declare type CommandActionParams = any[]; | ||
export declare type ExecuteActionParams = any[]; | ||
export declare type SnippetActionParams = any; | ||
export declare type FileActionParams = vscode.Uri; | ||
export interface IAction { | ||
actionType: ActionType | undefined; | ||
} | ||
export interface IExecuteAction extends IAction { | ||
executeAction: (params?: ExecuteActionParams) => Thenable<any>; | ||
params?: ExecuteActionParams; | ||
} | ||
export interface ICommandAction extends IAction { | ||
name: string; | ||
params?: any[]; | ||
params?: CommandActionParams; | ||
} | ||
@@ -20,10 +28,6 @@ export interface ISnippetAction extends IAction { | ||
snippetName: string; | ||
context: any; | ||
context: SnippetActionParams; | ||
} | ||
export interface IFileAction extends IAction { | ||
uri: vscode.Uri; | ||
uri: FileActionParams; | ||
} | ||
export interface IExecuteAction extends IAction { | ||
executeAction: (params?: any[]) => Thenable<any>; | ||
params?: any[]; | ||
} |
{ | ||
"name": "@sap-devx/bas-platform-types", | ||
"publisher": "SAPOSS", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"author": "", | ||
@@ -6,0 +6,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
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
11771
196