fix: use non-optional type inference

This commit is contained in:
Bart van der Braak 2023-11-21 03:43:09 +01:00
parent ed3b86479c
commit 7d68c122df
4 changed files with 7 additions and 6 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

View file

@ -1,8 +1,10 @@
<script lang="ts">
export let title: string;
export let logo: string;
export let description: string;
export let date: string;
import type { TimelineItem } from './timeline-items';
export let title: TimelineItem['title'];
export let logo: TimelineItem['logo'];
export let description: TimelineItem['description'];
export let date: TimelineItem['date'];
</script>
<div

View file

@ -8,7 +8,7 @@ import bijlmerweideLogo from '$lib/assets/timeline/bijlmerweide.svg';
export interface TimelineItem {
title: string;
logo?: string;
logo: string;
link?: string;
image?: string;
description: string;