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.
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: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/webpack
Credits
These definitions were written by Anders Kaseorg.