-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(common-general): remove firebase dep
- Loading branch information
1 parent
2387db0
commit d29bb33
Showing
8 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,5 @@ | |
"typescript": "4.1.3" | ||
}, | ||
"dependencies": { | ||
"firebase": "^8.2.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import fb from "firebase"; | ||
|
||
export interface CreatedAt { | ||
createdAt: fb.firestore.Timestamp | fb.firestore.FieldValue; | ||
export interface CreatedAt<T, F> { | ||
createdAt: T | F; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import fb from "firebase"; | ||
|
||
export interface UpdatedAt { | ||
updatedAt: fb.firestore.Timestamp | fb.firestore.FieldValue; | ||
export interface UpdatedAt<T, F> { | ||
updatedAt: T | F; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import {CreatedAt} from "./CreatedAt"; | ||
|
||
export interface RTDBInstance extends CreatedAt { | ||
export interface RTDBInstance { | ||
onlineOnGameCount: number; | ||
region: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export enum RTDBPaths { | ||
Games = 'games', | ||
Cards = 'cards', | ||
Statuses = 'statuses' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import {UpdatedAt} from "./UpdatedAt"; | ||
|
||
export interface Status extends UpdatedAt { | ||
export interface Status<T, F> extends UpdatedAt<T, F> { | ||
state: 'offline' | 'online'; | ||
gameId: string | null; | ||
gameIds: {[key: string]: boolean} | null; | ||
} |