Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit f87820e

Browse files
Corrected type definition error
1 parent 6a7cdff commit f87820e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ConfigOptions } from "karma";
1+
import { ConfigOptions, InlinePluginDef } from "karma";
22
import { RuleSetRule, RuleSetUseItem } from "webpack";
33

44
// tslint:disable-next-line: no-any
@@ -26,7 +26,7 @@ export function mergeConfig<T extends POJO>(target: T | undefined, defaults: Par
2626
* Adds the specified Karma plugin to the config
2727
*/
2828
export function addPlugin(config: ConfigOptions, plugin: string): ConfigOptions {
29-
config.plugins!.push(require(plugin));
29+
config.plugins!.push(require(plugin) as InlinePluginDef);
3030
return config;
3131
}
3232

0 commit comments

Comments
 (0)