WIP: Working login, and creation of Lobby, aswell as showing new Users
This commit is contained in:
22
src/app.d.ts
vendored
22
src/app.d.ts
vendored
@@ -5,11 +5,7 @@ declare global {
|
||||
namespace App {
|
||||
// interface Error {}
|
||||
interface Locals {
|
||||
// user: {
|
||||
// isLoggedIn: boolean;
|
||||
// email: string | null;
|
||||
// username: string | null;
|
||||
// }
|
||||
user: User | null;
|
||||
}
|
||||
// interface PageData {}
|
||||
// interface PageState {}
|
||||
@@ -18,15 +14,15 @@ declare global {
|
||||
}
|
||||
|
||||
export interface User {
|
||||
email: string | null;
|
||||
username: string | null;
|
||||
}
|
||||
|
||||
export interface Player {
|
||||
id: number;
|
||||
name: string;
|
||||
isHost: boolean;
|
||||
email: string;
|
||||
username: string;
|
||||
}
|
||||
//
|
||||
// export interface Player {
|
||||
// id: number;
|
||||
// name: string;
|
||||
// isHost: boolean;
|
||||
// }
|
||||
|
||||
export interface GameMode {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user