stryker-api
Version:
The api for the extendable JavaScript mutation testing framework Stryker
28 lines • 851 B
TypeScript
/**
* Common tokens used for dependency injection (see typed-inject readme for more information)
*/
export declare const commonTokens: Readonly<{
/**
* @deprecated Use 'options' instead. This is just hear to support plugin migration
*/
config: "config";
getLogger: "getLogger";
injector: "$injector";
logger: "logger";
options: "options";
pluginResolver: "pluginResolver";
produceSourceMaps: "produceSourceMaps";
sandboxFileNames: "sandboxFileNames";
target: "$target";
}>;
/**
* Helper method to create string literal tuple type.
* @example
* ```ts
* const inject = tokens('foo', 'bar');
* const inject2: ['foo', 'bar'] = ['foo', 'bar'];
* ```
* @param tokens The tokens as args
*/
export declare function tokens<TS extends string[]>(...tokens: TS): TS;
//# sourceMappingURL=tokens.d.ts.map