npm.io
1.2.6 • Published 2 years ago

@types/moment-locales-webpack-plugin

Licence
MIT
Version
1.2.6
Deps
3
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/moment-locales-webpack-plugin

Summary

This package contains type definitions for moment-locales-webpack-plugin (https://github.com/iamakulov/moment-locales-webpack-plugin).

Details

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

index.d.ts

/// <reference types="node" />
import { ContextReplacementPlugin } from "webpack";

declare class MomentLocalesPlugin extends ContextReplacementPlugin {
    constructor(options?: {
        /** Ignore invalid or unsupported locales in `localesToKeep`. */
        ignoreInvalidLocales?: boolean | undefined;
        /** An array of locales to keep bundled (other locales are removed). */
        localesToKeep?: string[] | undefined;
    });
}

export = MomentLocalesPlugin;

Additional Details

Credits

These definitions were written by Ciarán Ingle.