3.0.6 • Published 2 years ago
@types/git-revision-webpack-plugin v3.0.6
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.