UNPKG

@stryker-mutator/api

Version:

The api for the extendable JavaScript mutation testing framework Stryker

41 lines 1.17 kB
import { PluginKind } from './plugin-kind.js'; /** * 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 */ export function declareClassPlugin(kind, name, injectableClass) { return { injectableClass, kind, name, }; } /** * 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 */ export function declareFactoryPlugin(kind, name, factory) { return { factory, kind, name, }; } /** * Declare a value plugin. Use this method for simple plugins where you don't need values to be injected. * @param kind The plugin kind * @param name The name of the plugin * @param value The plugin */ export function declareValuePlugin(kind, name, value) { return { value, kind, name, }; } //# sourceMappingURL=plugins.js.map