mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Merge pull request #19169 from spicypixel-forks/spicypixel/git-rev
Add git-rev package
This commit is contained in:
7
types/git-rev/git-rev-tests.ts
Normal file
7
types/git-rev/git-rev-tests.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as gitRev from "git-rev";
|
||||
|
||||
gitRev.short((result) => {});
|
||||
gitRev.long((result) => {});
|
||||
gitRev.branch((result) => {});
|
||||
gitRev.tag((result) => {});
|
||||
gitRev.log((result) => {});
|
||||
10
types/git-rev/index.d.ts
vendored
Normal file
10
types/git-rev/index.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// Type definitions for git-rev 0.2
|
||||
// Project: https://github.com/tblobaum/git-rev
|
||||
// Definitions by: Spicy Pixel <http://spicypixel.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function short(callback: (short: string) => void): void;
|
||||
export function long(callback: (long: string) => void): void;
|
||||
export function branch(callback: (branch: string) => void): void;
|
||||
export function tag(callback: (tag: string) => void): void;
|
||||
export function log(callback: (log: string[][]) => void): void;
|
||||
22
types/git-rev/tsconfig.json
Normal file
22
types/git-rev/tsconfig.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"git-rev-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/git-rev/tslint.json
Normal file
1
types/git-rev/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user