Sfoglia il codice sorgente

Decouples storage types from real types

- Hopefully ensures we will get build errors if the types change
main
Eric Amodio 2 anni fa
parent
commit
06b4982f9b
2 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. +2
    -0
      src/plus/webviews/graph/protocol.ts
  2. +3
    -2
      src/storage.ts

+ 2
- 0
src/plus/webviews/graph/protocol.ts Vedi File

@ -21,6 +21,8 @@ import type { Subscription } from '../../../subscription';
import type { DateTimeFormat } from '../../../system/date';
import { IpcCommandType, IpcNotificationType } from '../../../webviews/protocol';
export type { GraphRefType } from '@gitkraken/gitkraken-components';
export type GraphColumnsSettings = Record<GraphColumnName, GraphColumnSetting>;
export type GraphSelectedRows = Record</*id*/ string, true>;
export type GraphAvatars = Record</*email*/ string, /*url*/ string>;

+ 3
- 2
src/storage.ts Vedi File

@ -1,4 +1,3 @@
import type { GraphRefType } from '@gitkraken/gitkraken-components';
import type { Disposable, Event, ExtensionContext, SecretStorageChangeEvent } from 'vscode';
import { EventEmitter } from 'vscode';
import type { ViewShowBranchComparison } from './config';
@ -235,10 +234,12 @@ export interface StoredGraphColumn {
width?: number;
}
export type StoredGraphRefType = 'head' | 'remote' | 'tag';
export interface StoredGraphHiddenRef {
id: string;
name: string;
type: GraphRefType;
type: StoredGraphRefType;
avatarUrl?: string;
}

Caricamento…
Annulla
Salva