mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Added type definitions for git-rev-sync
This commit is contained in:
parent
3b01bb29b1
commit
7bd54136c2
13
types/git-rev-sync/git-rev-sync-tests.ts
Normal file
13
types/git-rev-sync/git-rev-sync-tests.ts
Normal file
@ -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();
|
||||
15
types/git-rev-sync/index.d.ts
vendored
Normal file
15
types/git-rev-sync/index.d.ts
vendored
Normal file
@ -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;
|
||||
16
types/git-rev-sync/tsconfig.json
Normal file
16
types/git-rev-sync/tsconfig.json
Normal file
@ -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"]
|
||||
}
|
||||
6
types/git-rev-sync/tslint.json
Normal file
6
types/git-rev-sync/tslint.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"dt-header": false
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user