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

Installation

npm install --save @types/worker-plugin

Summary

This package contains type definitions for worker-plugin (https://github.com/GoogleChromeLabs/worker-plugin).

Details

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

index.d.ts

// Type definitions for worker-plugin 5.0
// Project: https://github.com/GoogleChromeLabs/worker-plugin
// Definitions by: Artur Androsovych <https://github.com/arturovt>
//                 Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

import * as webpack from 'webpack';

export = WorkerPlugin;

declare class WorkerPlugin extends webpack.Plugin {
    constructor(options?: WorkerPlugin.Options);
}

declare namespace WorkerPlugin {
    interface Options {
        filename?: string | undefined;
        chunkFilename?: string | undefined;
        globalObject?: false | string | undefined;
        plugins?: Array<string | webpack.Plugin> | undefined;
        /**
         * If set to `true`, this option enables the bundling of [SharedWorker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker)
         */
        sharedWorker?: boolean | undefined;
        /**
         * If set to `false`, this option disables the bundling of [Worker].
         * Intended to be used with `{ sharedWorker: true }` to allow bundling of [SharedWorker] only without also bundling [Worker].
         */
        worker?: boolean | undefined;
        preserveTypeModule?: boolean | undefined;
        /**
         * Normally, WorkerPlugin will transform `new Worker('./a.js', { type: 'module' })`
         * to completely remove the `type` option, outputting something like `new Worker('a.worker.js')`.
         * This allows the plugin to compile Module Workers to Classic Workers, which are supported in all browsers.
         */
        workerType?: string | undefined;
    }
}

Additional Details

  • Last updated: Fri, 02 Jul 2021 18:06:01 GMT
  • Dependencies: @types/webpack
  • Global values: none

Credits

These definitions were written by Artur Androsovych, and Piotr Błażejewicz.

Current Tags

  • 5.0.1                                ...           latest (5 years ago)
  • 3.2.0                                ...           ts2.8 (6 years ago)
  • 3.2.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)
  • 5.0.1                                ...           ts3.7 (5 years ago)
  • 5.0.1                                ...           ts3.8 (5 years ago)
  • 5.0.1                                ...           ts3.9 (5 years ago)
  • 5.0.1                                ...           ts4.0 (5 years ago)
  • 5.0.1                                ...           ts4.1 (5 years ago)
  • 5.0.1                                ...           ts4.2 (5 years ago)
  • 5.0.1                                ...           ts4.3 (5 years ago)
  • 5.0.1                                ...           ts4.4 (5 years ago)
  • 5.0.1                                ...           ts4.5 (5 years ago)
  • 5.0.1                                ...           ts4.6 (5 years ago)
  • 5.0.1                                ...           ts4.7 (5 years ago)
  • 5.0.1                                ...           ts4.8 (5 years ago)
  • 5.0.1                                ...           ts4.9 (5 years ago)

5 Versions

  • 5.0.1                                ...           5 years ago
  • 5.0.0                                ...           5 years ago
  • 4.0.1                                ...           5 years ago
  • 4.0.0                                ...           6 years ago
  • 3.2.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |