forked from aackerman/circular-dependency-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
52 lines (48 loc) · 1.4 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/// <reference types="node" />
import { Compilation, Compiler, Module, WebpackPluginInstance } from "webpack";
export = CircularDependencyPlugin;
/**
* Detect modules with circular dependencies when bundling with webpack.
*/
declare class CircularDependencyPlugin implements WebpackPluginInstance {
constructor(options?: CircularDependencyPlugin.Options);
apply(compiler: Compiler): void;
// Not exposing `isCyclic` because it isn't meant to be public, I believe
}
declare namespace CircularDependencyPlugin {
interface Options {
/**
* @default false
*/
allowAsyncCycles?: boolean | undefined;
/**
* @default process.cwd()
*/
cwd?: string | undefined;
/**
* @default /$^/
*/
exclude?: RegExp | undefined;
/**
* @default /.*\/
*/
include?: RegExp | undefined;
/**
* @default false
*/
failOnError?: boolean | undefined;
/**
* @default false
*/
onDetected?:
| false
| ((x: {
module: Module;
paths: string[];
compilation: Compilation;
}) => void)
| undefined;
onEnd?: ((x: { compilation: Compilation }) => void) | undefined;
onStart?: ((x: { compilation: Compilation }) => void) | undefined;
}
}