mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Added type definitions for git-rev-sync
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import * as gitRevSync from "git-rev-sync";
|
||||
|
||||
gitRevSync.branch();
|
||||
gitRevSync.count();
|
||||
gitRevSync.date();
|
||||
gitRevSync.isDirty();
|
||||
gitRevSync.isTagDirty();
|
||||
gitRevSync.long();
|
||||
gitRevSync.message();
|
||||
gitRevSync.remoteUrl();
|
||||
gitRevSync.short();
|
||||
gitRevSync.short();
|
||||
gitRevSync.tag();
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// Type definitions for git-rev-sync 1.12.0
|
||||
// Project: https://github.com/tblobaum/git-rev
|
||||
// Definitions by: Khoi Nguyen <http://hellokhoi.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function short(filePath?: string, length?: number): string;
|
||||
export function long(filePath?: string): string;
|
||||
export function branch(branch?: string): void;
|
||||
export function count(): number;
|
||||
export function date(): Date;
|
||||
export function isDirty(): boolean;
|
||||
export function isTagDirty(): boolean;
|
||||
export function message(): string;
|
||||
export function remoteUrl(): string;
|
||||
export function tag(makeDirty?: boolean): string;
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["index.d.ts", "git-rev-sync-tests.ts"]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"dt-header": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user