mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Added Clone and co
This commit is contained in:
13
types/nodegit/clone-options.d.ts
vendored
Normal file
13
types/nodegit/clone-options.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { CheckoutOptions } from './checkout-options';
|
||||
import { FetchOptions } from './fetch-options';
|
||||
|
||||
export class CloneOptions {
|
||||
version?: number;
|
||||
checkoutOpts?: CheckoutOptions;
|
||||
fetchOpts?: FetchOptions;
|
||||
bare?: number;
|
||||
local?: number;
|
||||
checkoutBranch?: string;
|
||||
repositoryCbPayload?: void;
|
||||
remoteCbPayload?: void;
|
||||
}
|
||||
16
types/nodegit/clone.d.ts
vendored
Normal file
16
types/nodegit/clone.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Repository } from './repository';
|
||||
import { CloneOptions } from './clone-options';
|
||||
|
||||
export namespace Clone {
|
||||
enum LOCAL {
|
||||
AUTO = 0,
|
||||
LOCAL = 1,
|
||||
NO_LOCAL = 2,
|
||||
NO_LINKS = 3
|
||||
}
|
||||
}
|
||||
|
||||
export class Clone {
|
||||
static clone(url: string, local_path: string, options?: CloneOptions): Promise<Repository>;
|
||||
static initOptions(opts: CloneOptions, version: number): number;
|
||||
}
|
||||
2
types/nodegit/index.d.ts
vendored
2
types/nodegit/index.d.ts
vendored
@@ -13,6 +13,8 @@ export { Branch } from './branch';
|
||||
export { Buf } from './buf';
|
||||
export { CheckoutOptions } from './checkout-options';
|
||||
export { Checkout } from './checkout';
|
||||
export { CloneOptions } from './clone-options';
|
||||
export { Clone } from './clone';
|
||||
export { Commit } from './commit';
|
||||
export { Config } from './config';
|
||||
export { ConvenientPatch } from './convenient-patch';
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
"buf.d.ts",
|
||||
"checkout-options.d.ts",
|
||||
"checkout.d.ts",
|
||||
"clone-options.d.ts",
|
||||
"clone.d.ts",
|
||||
"commit.d.ts",
|
||||
"config.d.ts",
|
||||
"convenient-patch.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user