stryker-api
Version:
The api for the extendable JavaScript mutation testing framework Stryker
32 lines • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var PluginKind_1 = require("./PluginKind");
/**
* Declare a class plugin. Use this method in order to type check the dependency graph of your plugin
* @param kind The plugin kind
* @param name The name of the plugin
* @param injectableClass The class to be instantiated for the plugin
*/
function declareClassPlugin(kind, name, injectableClass) {
return {
injectableClass: injectableClass,
kind: kind,
name: name
};
}
exports.declareClassPlugin = declareClassPlugin;
/**
* Declare a factory plugin. Use this method in order to type check the dependency graph of your plugin,
* @param kind The plugin kind
* @param name The name of the plugin
* @param factory The factory used to instantiate the plugin
*/
function declareFactoryPlugin(kind, name, factory) {
return {
factory: factory,
kind: kind,
name: name
};
}
exports.declareFactoryPlugin = declareFactoryPlugin;
//# sourceMappingURL=Plugins.js.map