mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-09 18:32:48 +00:00
19 lines
389 B
TypeScript
19 lines
389 B
TypeScript
import gitBranch = require('git-branch');
|
|
|
|
gitBranch()
|
|
.then((name) => {
|
|
name; // $ExpectType string
|
|
});
|
|
|
|
gitBranch('cwd')
|
|
.then((name) => {
|
|
name; // $ExpectType string
|
|
});
|
|
|
|
gitBranch.sync(); // $ExpectType string
|
|
gitBranch.sync('cwd'); // $ExpectType string
|
|
|
|
gitBranch((err, name) => {}); // $ExpectType void
|
|
|
|
gitBranch('cwd', (err, name) => {}); // $ExpectType void
|