Skip to content

Commit

Permalink
Better types
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Jul 30, 2024
1 parent 1a30486 commit ccad936
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/routes/room/[room=uuid]/ViewSchedule.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import { isEqual } from 'lodash-es';
import ScheduleDisplay from './ScheduleDisplay.svelte';
import type { Schedule, Class } from '$lib/InfoInput';
import type { You } from './ViewSchedules';
import type { ResolvedYou } from './ViewSchedules';
export let schedule: Schedule;
export let you: You;
export let you: ResolvedYou;
export let getClass: (id: string) => Promise<Class>;
</script>

Expand All @@ -21,9 +21,7 @@
<div class="collapse-content hidden">
<div class="overflow-x-auto">
<!-- If statement to appease type checker -->
{#if you != null && you !== 'tentative'}
<ScheduleDisplay them={schedule} you={you.schedule} {getClass} />
{/if}
<ScheduleDisplay them={schedule} you={you.schedule} {getClass} />
</div>
</div>
</div>
Expand Down

0 comments on commit ccad936

Please sign in to comment.