mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
15 lines
230 B
TypeScript
15 lines
230 B
TypeScript
import gitBranch = require('git-branch');
|
|
|
|
gitBranch()
|
|
.then((name) => {});
|
|
|
|
gitBranch('cwd')
|
|
.then((name) => {});
|
|
|
|
gitBranch.sync();
|
|
gitBranch.sync('cwd');
|
|
|
|
gitBranch((err, name) => {});
|
|
|
|
gitBranch('cwd', (err, name) => {});
|