1.2.6 • Published 6 months ago

@types/moment-locales-webpack-plugin v1.2.6

Weekly downloads
4,786
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for moment-locales-webpack-plugin 1.2
// Project: https://github.com/iamakulov/moment-locales-webpack-plugin
// Definitions by: Ciarán Ingle <https://github.com/inglec-arista>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

/// <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.

1.2.6

6 months ago

1.2.5

7 months ago

1.2.4

7 months ago

1.2.3

2 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

4 years ago