mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
498 B
TypeScript
21 lines
498 B
TypeScript
import { Repository } from './repository';
|
|
import { CloneOptions } from './clone-options';
|
|
|
|
export namespace Clone {
|
|
const enum LOCAL {
|
|
AUTO = 0,
|
|
LOCAL = 1,
|
|
NO_LOCAL = 2,
|
|
NO_LINKS = 3
|
|
}
|
|
}
|
|
|
|
export class Clone {
|
|
/**
|
|
* Patch repository cloning to automatically coerce objects.
|
|
*/
|
|
static clone(url: string, localPath: string, options?: CloneOptions): Promise<Repository>;
|
|
|
|
static initOptions(opts: CloneOptions, version: number): number;
|
|
}
|