@types/webpackbar
TypeScript definitions for webpackbar
Last updated 4 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/webpackbar 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/webpackbar

Summary

This package contains type definitions for webpackbar (https://github.com/nuxt/webpackbar).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpackbar/v2.

index.d.ts

// Type definitions for webpackbar 2.6
// Project: https://github.com/nuxt/webpackbar
// Definitions by: Ryan Clark <https://github.com/rynclark>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

/// <reference types="node" />

import { Plugin } from 'webpack';

export = WebpackBar;

declare class WebpackBar extends Plugin {
    constructor(options?: WebpackBar.Options);

  state: WebpackBar.State;
}

declare namespace WebpackBar {
  interface Stats {
    count: number;
    time: [number, number];
  }

  class Profile {
    requests: any[];

    name: string;

    constructor(name: string);

    getStats(): { ext: Stats, loader: Stats };
  }

  interface State {
    isRunning: boolean;
    color: string;
    profile: Profile | null;
  }

  interface SharedState {
    [name: string]: State;
  }

  interface Options {
    /** Display name */
    name?: string | undefined;
    /** Color output of the progress bar */
    color?: string | undefined;
    /** Enable the profiler for files and loaders */
    profile?: boolean | undefined;
    /** Stream to write to */
    stream?: NodeJS.WriteStream | undefined;
    /** Minimal output */
    minimal?: boolean | undefined;
    /** Show compiled in time */
    compiledIn?: boolean | undefined;
    /** Function called when all builds are finished */
    done?: ((sharedState: SharedState, ctx: WebpackBar) => void) | undefined;
  }
}

Additional Details

Credits

These definitions were written by Ryan Clark.

Current Tags

  • 4.0.3                                ...           latest (4 years ago)
  • 2.6.0                                ...           ts2.3 (8 years ago)
  • 2.6.0                                ...           ts2.4 (8 years ago)
  • 2.6.0                                ...           ts2.5 (8 years ago)
  • 2.6.0                                ...           ts2.6 (8 years ago)
  • 2.6.0                                ...           ts2.7 (8 years ago)
  • 4.0.0                                ...           ts2.8 (6 years ago)
  • 4.0.0                                ...           ts2.9 (6 years ago)
  • 4.0.0                                ...           ts3.0 (6 years ago)
  • 4.0.0                                ...           ts3.1 (6 years ago)
  • 4.0.0                                ...           ts3.2 (6 years ago)
  • 4.0.0                                ...           ts3.3 (6 years ago)
  • 4.0.0                                ...           ts3.4 (6 years ago)
  • 4.0.0                                ...           ts3.5 (6 years ago)
  • 4.0.0                                ...           ts3.6 (6 years ago)
  • 4.0.2                                ...           ts3.7 (5 years ago)
  • 4.0.3                                ...           ts3.8 (4 years ago)
  • 4.0.3                                ...           ts3.9 (4 years ago)
  • 4.0.3                                ...           ts4.0 (4 years ago)
  • 4.0.3                                ...           ts4.1 (4 years ago)
  • 4.0.3                                ...           ts4.2 (4 years ago)
  • 4.0.3                                ...           ts4.3 (4 years ago)
  • 4.0.3                                ...           ts4.4 (4 years ago)
  • 4.0.3                                ...           ts4.5 (4 years ago)
  • 4.0.3                                ...           ts4.6 (4 years ago)
  • 4.0.3                                ...           ts4.7 (4 years ago)
  • 4.0.3                                ...           ts4.8 (4 years ago)
  • 4.0.3                                ...           ts4.9 (4 years ago)

11 Versions

  • 2.6.6                                ...           4 years ago
  • 4.0.3                                ...           4 years ago
  • 2.6.5                                ...           5 years ago
  • 4.0.2                                ...           5 years ago
  • 2.6.4                                ...           5 years ago
  • 4.0.1                                ...           5 years ago
  • 2.6.3                                ...           6 years ago
  • 2.6.2                                ...           6 years ago
  • 2.6.1                                ...           6 years ago
  • 4.0.0                                ...           6 years ago
  • 2.6.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |