3.0.6 • Published 2 years ago

@types/git-revision-webpack-plugin v3.0.6

Weekly downloads
8,644
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/git-revision-webpack-plugin

Summary

This package contains type definitions for git-revision-webpack-plugin (https://github.com/pirelenito/git-revision-webpack-plugin).

Details

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

index.d.ts

// Type definitions for git-revision-webpack-plugin 3.0
// Project: https://github.com/pirelenito/git-revision-webpack-plugin
// Definitions by: Anders Kaseorg <https://github.com/andersk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

import { Compiler, WebpackPluginInstance } from 'webpack';

declare namespace GitRevisionPlugin {
    interface Options {
        lightweightTags?: boolean | undefined;
        branch?: boolean | undefined;
        commithashCommand?: string | undefined;
        versionCommand?: string | undefined;
        branchCommand?: string | undefined;
        gitWorkTree?: string | undefined;
    }
}

declare class GitRevisionPlugin implements WebpackPluginInstance {
    constructor(options?: GitRevisionPlugin.Options);
    apply(compiler: Compiler): void;
    version(): string;
    commithash(): string;
    branch(): string;
}

export = GitRevisionPlugin;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:02:08 GMT
  • Dependencies: @types/webpack
  • Global values: none

Credits

These definitions were written by Anders Kaseorg.

3.0.4

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

6 years ago