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

1.0.4 • Public • Published

Installation

npm install --save @types/git-http-backend

Summary

This package contains type definitions for git-http-backend (https://github.com/substack/git-http-backend).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-http-backend.

index.d.ts

/// <reference types='node' />

import { Duplex, Writable } from "stream";
interface Fields {
    head: string;
    last: string;
    refname: string;
    ref: string;
    tag: string;
    branch: string;
    name: string;
}
declare class Service {
    constructor(
        opts: {
            info: boolean;
            cmd: string;
        } & Fields,
        backend: Backend,
    );
    info: boolean;
    cmd: string;
    _bands: Buffer[];
    action: string | { "git-receive-pack": string; "git-upload-pack": "pull" };
    type: string;
    _backend: Backend;
    fields: Fields;
    args: string[];
    createStream(): Duplex;
    createBand(): Writable;
}

declare class Backend extends Duplex {
    constructor(uri: string, cb?: (err: any, service: Service) => void);
    parsed: boolean;
    service: string | string[];
    info: boolean;
}
export = Backend;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by .

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.419ts5.8
1.0.419ts5.7
1.0.419latest
1.0.419ts4.5
1.0.419ts4.6
1.0.419ts4.7
1.0.419ts4.8
1.0.419ts4.9
1.0.419ts5.0
1.0.419ts5.1
1.0.419ts5.2
1.0.419ts5.3
1.0.419ts5.4
1.0.419ts5.5
1.0.419ts5.6
1.0.419ts5.9
1.0.13ts4.0
1.0.13ts4.1
1.0.13ts4.2
1.0.13ts4.3
1.0.13ts4.4
1.0.01ts3.8
1.0.01ts3.9

Version History

VersionDownloads (Last 7 Days)Published
1.0.419
1.0.30
1.0.20
1.0.13
1.0.01

Package Sidebar

Install

npm i @types/git-http-backend

Weekly Downloads

23

Version

1.0.4

License

MIT

Unpacked Size

4.22 kB

Total Files

5

Last publish

Collaborators

  • types