Clean up all kinds of typescript issues

This commit is contained in:
2024-05-05 15:58:58 -04:00
parent 634cff507c
commit 8e73650462
21 changed files with 380 additions and 159 deletions

View File

@@ -44,7 +44,7 @@ export function getSampleTimeBlocks(): Timeblock[] {
for (let i = 0; i <= 30; i++) {
const template = templateB;
result.push(
...boats
...boats.value
.map((b): Timeblock[] => {
return template.blocks.map((t): Timeblock => {
return {
@@ -126,7 +126,7 @@ export function getSampleReservations(): Reservation[] {
};
return sampleData.map((entry): Reservation => {
const boat = <Boat>boatStore.boats.find((b) => b.$id == entry.boat);
const boat = <Boat>boatStore.boats.value.find((b) => b.$id == entry.boat);
return {
id: entry.id,
user: entry.user,