@types/list-git-remotes
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/list-git-remotes

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

3.9 kB

Total Files

5

Last publish

Collaborators

  • types