@stryker-mutator/api
Version:
The api for the extendable JavaScript mutation testing framework Stryker
22 lines (18 loc) • 645 B
text/typescript
import { FileDescriptions, StrykerOptions } from '../core/index.js';
import { Logger, LoggerFactoryMethod } from '../logging/index.js';
import { commonTokens } from './tokens.js';
/**
* The basic dependency injection context within Stryker
*/
export interface BaseContext {
[]: LoggerFactoryMethod;
[]: Logger;
}
/**
* The dependency injection context for most of Stryker's plugins.
* Can inject basic stuff as well as the Stryker options
*/
export interface PluginContext extends BaseContext {
[]: StrykerOptions;
[]: FileDescriptions;
}