mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
325 B
TypeScript
12 lines
325 B
TypeScript
import addRemotePrepare = require('git-add-remote');
|
|
|
|
const addRemote = addRemotePrepare('foo/bar');
|
|
|
|
addRemote('foo', 'https://foo.git', (err, stdout, stderr) => {
|
|
err; // $ExpectType ExecException | null
|
|
stdout; // $ExpectType string
|
|
stderr; // $ExpectType string
|
|
});
|
|
|
|
addRemote.sync('foo', 'https://foo.git');
|