mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
* nodegit/repository.d.ts: Remove unused imports * nodegit/repository.d.ts: Fix wrong signature on Repository.cleanup() * nodegit/repository.d.ts: Add missing promisified methods * nodegit: Add Repository.cleanup() test * nodegit: format with prettier Co-authored-by: Nicolas Le Cam <nicolas.lecam@digital4better.com>
21 lines
499 B
TypeScript
21 lines
499 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;
|
|
}
|