@atomist/sdm
Version:
Atomist Software Delivery Machine SDK
25 lines • 827 B
TypeScript
import { HandlerContext } from "@atomist/automation-client/lib/HandlerContext";
/**
* Skills get additional contextual information when they
* execute
*/
export interface SkillContext<C = any> {
/** Optional configuration of the skill */
configuration?: SkillConfiguration<C>;
}
/**
* Skills get configured and the named configuration gets
* passed to the running command or event handler
*/
export interface SkillConfiguration<C extends Record<string, any> = any> {
/** Name of the configuration */
name: string;
/** */
parameters: C;
}
/**
* Helper function to create a SkillContext instance
* from the passed in HandlerContext
*/
export declare function createSkillContext<C extends Record<string, any> = any>(ctx: HandlerContext): SkillContext<C>;
//# sourceMappingURL=skillContext.d.ts.map