@types/circular-dependency-plugin
TypeScript icon, indicating that this package has built-in type declarations

5.0.8 • Public • Published

Installation

npm install --save @types/circular-dependency-plugin

Summary

This package contains type definitions for circular-dependency-plugin (https://github.com/aackerman/circular-dependency-plugin).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/circular-dependency-plugin.

index.d.ts

/// <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;
    }
}

Additional Details

Credits

These definitions were written by Olegs Jeremejevs.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 5.0.8
    30,200
  • 5.0.7
    262
  • 5.0.6
    511
  • 5.0.5
    46,968
  • 5.0.4
    2,858
  • 5.0.3
    104
  • 5.0.2
    88
  • 5.0.1
    1,182
  • 5.0.0
    78,910

Package Sidebar

Install

npm i @types/circular-dependency-plugin

Weekly Downloads

161,083

Version

5.0.8

License

MIT

Unpacked Size

5.72 kB

Total Files

5

Last publish

Collaborators

  • types