Skip to content

Commit e15cd4d

Browse files
committed
add missing type
1 parent 4eaf1b7 commit e15cd4d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tensorboard/webapp/metrics/store/metrics_types.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
} from '../data_source';
2828
import {
2929
CardId,
30+
CardIdWithMetadata,
3031
CardMetadata,
3132
CardUniqueInfo,
3233
HistogramMode,
@@ -166,6 +167,12 @@ export type CardStepIndexMap = Record<
166167
CardStepIndexMetaData | null
167168
>;
168169

170+
export type CardInteractions = {
171+
tagFilters: string[];
172+
pins: CardIdWithMetadata[];
173+
clicks: CardIdWithMetadata[];
174+
};
175+
169176
export type CardToPinnedCard = Map<NonPinnedCardId, PinnedCardId>;
170177

171178
export type PinnedCardToCard = Map<PinnedCardId, NonPinnedCardId>;
@@ -254,6 +261,8 @@ export interface MetricsNonNamespacedState {
254261
* Map from ElementId to CardId. Only contains all visible cards.
255262
*/
256263
visibleCardMap: Map<ElementId, CardId>;
264+
previousCardInteractions: CardInteractions;
265+
newCardInteractions: CardInteractions;
257266
}
258267

259268
export type MetricsState = NamespaceContextedState<

0 commit comments

Comments
 (0)