Skip to content

Commit

Permalink
refactor(types): modularize database from state
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jan 26, 2024
1 parent 077307e commit 8fa6cb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/types/database.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export enum DatabaseKey {
host = 'host',
players = 'players',
}
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './database';
export * from './state';
export * from './user';
5 changes: 0 additions & 5 deletions src/types/state.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import { store } from '../store';

export type RootState = ReturnType<typeof store.getState>;

export enum DatabaseKey {
host = 'host',
players = 'players',
}

0 comments on commit 8fa6cb6

Please sign in to comment.