Parcourir la source

Decouples storage types from real types

- Hopefully ensures we will get build errors if the types change
main
Eric Amodio il y a 2 ans
Parent
révision
06b4982f9b
2 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. +2
    -0
      src/plus/webviews/graph/protocol.ts
  2. +3
    -2
      src/storage.ts

+ 2
- 0
src/plus/webviews/graph/protocol.ts Voir le fichier

@ -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 Voir le fichier

@ -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;
}

Chargement…
Annuler
Enregistrer