mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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
|