DefinitelyTyped/types/git-revision-webpack-plugin/index.d.ts
Anders Kaseorg 362f0f4373 Add types for git-revision-webpack-plugin (#36339)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-06-21 00:43:19 -07:00

28 lines
787 B
TypeScript

// 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: 2.3
import { Plugin } from 'webpack';
declare namespace GitRevisionPlugin {
interface Options {
lightweightTags?: boolean;
branch?: boolean;
commithashCommand?: string;
versionCommand?: string;
branchCommand?: string;
gitWorkTree?: string;
}
}
declare class GitRevisionPlugin extends Plugin {
constructor(options?: GitRevisionPlugin.Options);
version(): string;
commithash(): string;
branch(): string;
}
export = GitRevisionPlugin;