17 lines
372 B
TypeScript
17 lines
372 B
TypeScript
export type DiffSource = "uncommitted" | "committed" | "pr";
|
|
|
|
export type OpenDiffOptions = {
|
|
source?: DiffSource;
|
|
repositoryName?: string;
|
|
};
|
|
|
|
export type DiffSheetMode =
|
|
| { kind: "all" }
|
|
| {
|
|
kind: "file";
|
|
path: string;
|
|
sourceFilter?: "all" | DiffSource;
|
|
repositoryName?: string;
|
|
}
|
|
| { kind: "commit"; sha: string; repo?: string };
|