DefinitelyTyped/types/git-add-remote/git-add-remote-tests.ts
2018-12-25 15:50:14 +01:00

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');