mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-04-27 09:31:21 +00:00
fix: use non-optional type inference
This commit is contained in:
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 |
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue