Update types
This commit is contained in:
parent
063d78fad5
commit
1b21e194cf
1 changed files with 4 additions and 4 deletions
|
|
@ -4,26 +4,22 @@ import type { Logger } from "./logger";
|
|||
export interface SyncCreateDetails {
|
||||
type: SyncType.CREATE;
|
||||
relativePath: RelativePath;
|
||||
author?: string;
|
||||
}
|
||||
|
||||
export interface SyncUpdateDetails {
|
||||
type: SyncType.UPDATE;
|
||||
relativePath: RelativePath;
|
||||
author?: string;
|
||||
}
|
||||
|
||||
export interface SyncMovedDetails {
|
||||
type: SyncType.MOVE;
|
||||
relativePath: RelativePath;
|
||||
movedFrom: RelativePath;
|
||||
author?: string;
|
||||
}
|
||||
|
||||
export interface SyncDeleteDetails {
|
||||
type: SyncType.DELETE;
|
||||
relativePath: RelativePath;
|
||||
author?: string;
|
||||
}
|
||||
|
||||
export interface SyncSkippedDetails {
|
||||
|
|
@ -42,6 +38,7 @@ export interface CommonHistoryEntry {
|
|||
status: SyncStatus;
|
||||
message: string;
|
||||
details: SyncDetails;
|
||||
author?: string;
|
||||
}
|
||||
|
||||
export enum SyncType {
|
||||
|
|
@ -165,6 +162,9 @@ export class SyncHistory {
|
|||
this.status.error++;
|
||||
this.logger.error(`Cannot sync file: ${message}`);
|
||||
break;
|
||||
case SyncStatus.SKIPPED:
|
||||
this.logger.error(`Skipping file: ${message}`);
|
||||
break;
|
||||
}
|
||||
|
||||
this.syncHistoryUpdateListeners.forEach((listener) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue