@awdware/gah-shared
Advanced tools
Comparing version 0.0.50 to 0.2.0
export * from './models/gah-angular-compiler-options'; | ||
export * from './models/gah-command-handler'; | ||
export * from './models/gah-config'; | ||
@@ -3,0 +4,0 @@ export * from './models/gah-context'; |
@@ -14,2 +14,3 @@ "use strict"; | ||
__exportStar(require("./models/gah-angular-compiler-options"), exports); | ||
__exportStar(require("./models/gah-command-handler"), exports); | ||
__exportStar(require("./models/gah-config"), exports); | ||
@@ -16,0 +17,0 @@ __exportStar(require("./models/gah-context"), exports); |
@@ -25,2 +25,3 @@ import { IFileSystemService } from '../services/file-system.service'; | ||
protected registerEventListener<T extends GahEventType>(type: T, handler: (payload: Omit<ExtractEventPayload<GahEvent, T>, 'type'>) => void): void; | ||
protected registerCommandHandler(commandName: string, handler: (args: string[]) => Promise<boolean> | boolean): void; | ||
} |
@@ -11,2 +11,5 @@ "use strict"; | ||
}; | ||
GahPlugin.prototype.registerCommandHandler = function (commandName, handler) { | ||
this.pluginService.registerCommandHandler(this.name, commandName, handler); | ||
}; | ||
return GahPlugin; | ||
@@ -13,0 +16,0 @@ }()); |
@@ -12,2 +12,4 @@ import { GahEvent, GahEventType, ExtractEventPayload } from '../models/gah-event'; | ||
isPluginConfigured(pluginName: string): boolean; | ||
registerCommandHandler(pluginName: string, commandName: string, handler: (args: string[]) => Promise<boolean> | boolean): void; | ||
run(cmd: string, args: string[]): Promise<boolean>; | ||
} |
{ | ||
"name": "@awdware/gah-shared", | ||
"version": "0.0.50", | ||
"version": "0.2.0", | ||
"description": "Provides types and interfaces for gah", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
export * from './models/gah-angular-compiler-options'; | ||
export * from './models/gah-command-handler'; | ||
export * from './models/gah-config'; | ||
@@ -3,0 +4,0 @@ export * from './models/gah-context'; |
@@ -25,2 +25,3 @@ import { IFileSystemService } from '../services/file-system.service'; | ||
protected registerEventListener<T extends GahEventType>(type: T, handler: (payload: Pick<ExtractEventPayload<GahEvent, T>, Exclude<keyof ExtractEventPayload<GahEvent, T>, 'type'>>) => void): void; | ||
protected registerCommandHandler(commandName: string, handler: (args: string[]) => Promise<boolean> | boolean): void; | ||
} |
@@ -12,2 +12,4 @@ import { GahEvent, GahEventType, ExtractEventPayload } from '../models/gah-event'; | ||
isPluginConfigured(pluginName: string): boolean; | ||
registerCommandHandler(pluginName: string, commandName: string, handler: (args: string[]) => Promise<boolean> | boolean): void; | ||
run(cmd: string, args: string[]): Promise<boolean>; | ||
} |
Sorry, the diff of this file is not supported yet
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
97685
149
2351