mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
678 B
TypeScript
25 lines
678 B
TypeScript
// Type definitions for git-add-remote 1.0
|
|
// Project: https://github.com/jonschlinkert/git-add-remote
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
import { ExecException } from 'child_process';
|
|
|
|
export = prepare;
|
|
|
|
declare function prepare(cwd?: string): prepare.AddRemote;
|
|
|
|
declare namespace prepare {
|
|
interface AddRemote {
|
|
(
|
|
name: string,
|
|
url: string,
|
|
callback: (error: ExecException | null, stdout: string, stderr: string) => void
|
|
): void;
|
|
|
|
sync(name: string, url: string): void;
|
|
}
|
|
}
|