Skip to content

Commit

Permalink
chore: remove unused module ref
Browse files Browse the repository at this point in the history
  • Loading branch information
KatoakDR committed Sep 9, 2024
1 parent 036b65b commit f3f05ca
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions electron/main/preference/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { Layout } from 'react-grid-layout';
import type { Maybe } from '../../common/types.js';

export enum PreferenceKey {
Expand Down Expand Up @@ -38,7 +37,8 @@ export enum PreferenceKey {
/**
* Map of character names to grid layouts.
*
* Example keys include character names like 'Alice', 'Bob', 'Carol', etc.
* Key format: `${accountName}:${characterName}:${gameCode}`.
* Example: `MyAccount:Katoak:DR`.
*
* They also include the special key '__DEFAULT__', which is used
* when no character-specific grid layout is defined.
Expand Down Expand Up @@ -70,16 +70,17 @@ export type PreferenceKeyToTypeMap = {
[PreferenceKey.GAME_STREAM_GRID_LAYOUTS]: {
/**
* Who the grid layout belongs to.
* Example: `${accountName}:${characterName}:${gameCode}`
*/
[key: string]: {
/**
* The items on the grid.
* The items on the grid and how they are laid out.
*/
gridItems: Array<{ id: string; title: string }>;
/**
* How those items are positioned on the grid.
*/
gridLayout: Array<Layout>;
gridItems: Array<{
// TODO add more properties like position, size, etc.
id: string;
title: string;
}>;
};
};
};
Expand Down

0 comments on commit f3f05ca

Please sign in to comment.