update public API signature
Signed-off-by: Niya Ma <niyama12321@gmail.com>
This commit is contained in:
@@ -338,6 +338,7 @@ export class Git {
|
||||
dir: string;
|
||||
remote: string;
|
||||
url: string;
|
||||
force?: boolean;
|
||||
}): Promise<void>;
|
||||
clone(options: {
|
||||
url: string;
|
||||
@@ -363,6 +364,8 @@ export class Git {
|
||||
dir: string;
|
||||
fullName?: boolean;
|
||||
}): Promise<string | undefined>;
|
||||
// (undocumented)
|
||||
deleteRemote(options: { dir: string; remote: string }): Promise<void>;
|
||||
fetch(options: { dir: string; remote?: string }): Promise<void>;
|
||||
// (undocumented)
|
||||
static fromAuth: (options: {
|
||||
@@ -387,7 +390,12 @@ export class Git {
|
||||
};
|
||||
}): Promise<MergeResult>;
|
||||
// (undocumented)
|
||||
push(options: { dir: string; remote: string }): Promise<PushResult>;
|
||||
push(options: {
|
||||
dir: string;
|
||||
remote: string;
|
||||
remoteRef?: string;
|
||||
force?: boolean;
|
||||
}): Promise<PushResult>;
|
||||
readCommit(options: { dir: string; sha: string }): Promise<ReadCommitResult>;
|
||||
resolveRef(options: { dir: string; ref: string }): Promise<string>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user