updating types

This commit is contained in:
Devin Zuczek
2026-06-30 23:57:29 -04:00
parent 8e513c1275
commit ba33003343
40 changed files with 49940 additions and 16163 deletions
+1 -2
View File
@@ -8,8 +8,7 @@ export interface PlayerSetting {
Value: string
}
const DEFAULTS: ReadonlyArray<readonly [key: string, value: string]> = [
]
const DEFAULTS: ReadonlyArray<readonly [key: string, value: string]> = []
export function defaultSettings(playerId: number): PlayerSetting[] {
return DEFAULTS.map(([Key, Value]) => ({ PlayerId: playerId, Key, Value }))
+10 -3
View File
@@ -4,7 +4,6 @@ import { beforeAll, describe, expect, test } from 'vitest'
import '../../api.app'
import type { Env } from '../../context'
declare module 'cloudflare:test' {
@@ -23,7 +22,13 @@ const TEST_ROOMS = [
CreatorAccountId: 1,
SubRooms: [{ SubRoomId: 1, UnitySceneId: '76d98498-60a1-430c-ab76-b54a29b7a163' }],
},
{ RoomId: 2, Name: 'RecCenter', IsDorm: false, CreatorAccountId: 1, SubRooms: [{ SubRoomId: 2 }] },
{
RoomId: 2,
Name: 'RecCenter',
IsDorm: false,
CreatorAccountId: 1,
SubRooms: [{ SubRoomId: 2 }],
},
]
beforeAll(async () => {
@@ -49,7 +54,9 @@ beforeAll(async () => {
)`
).run()
await env.DB.prepare('INSERT OR IGNORE INTO accounts (data) VALUES (?1)')
.bind(JSON.stringify({ accountId: 42, username: 'Tester', profileImage: 'DefaultProfileImage.jpg' }))
.bind(
JSON.stringify({ accountId: 42, username: 'Tester', profileImage: 'DefaultProfileImage.jpg' })
)
.run()
})