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 .