1.0.4 • Published 2 years ago
@types/git-http-backend v1.0.4
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
// Type definitions for git-http-backend 1.0
// Project: https://github.com/substack/git-http-backend
// Definitions by: Tiago Dinis <https://github.com/tiagodinis33/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Sun, 06 Feb 2022 01:01:23 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Tiago Dinis.