Installation
npm install --save @types/list-git-remotes
Summary
This package contains type definitions for list-git-remotes (https://github.com/jonschlinkert/list-git-remotes).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/list-git-remotes.
index.d.ts
/// <reference types="node" />
import { ExecException, ExecSyncOptions } from "child_process";
export = listGitRemotes;
declare function listGitRemotes(callback: listGitRemotes.Callback): void;
declare function listGitRemotes(cwd: string, callback: listGitRemotes.Callback): void;
declare namespace listGitRemotes {
function sync(cwd?: string, options?: ExecSyncOptions): Remotes;
function sync(options: ExecSyncOptions): Remotes;
type Callback = (err: ExecException | null, remotes: Remotes, stderr?: string) => void;
interface Remotes {
[key: string]: string;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/node
Credits
These definitions were written by BendingBender.