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">
|
<script lang="ts">
|
||||||
export let title: string;
|
import type { TimelineItem } from './timeline-items';
|
||||||
export let logo: string;
|
|
||||||
export let description: string;
|
export let title: TimelineItem['title'];
|
||||||
export let date: string;
|
export let logo: TimelineItem['logo'];
|
||||||
|
export let description: TimelineItem['description'];
|
||||||
|
export let date: TimelineItem['date'];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -8,7 +8,7 @@ import bijlmerweideLogo from '$lib/assets/timeline/bijlmerweide.svg';
|
||||||
|
|
||||||
export interface TimelineItem {
|
export interface TimelineItem {
|
||||||
title: string;
|
title: string;
|
||||||
logo?: string;
|
logo: string;
|
||||||
link?: string;
|
link?: string;
|
||||||
image?: string;
|
image?: string;
|
||||||
description: string;
|
description: string;
|
||||||
|
|
Loading…
Reference in a new issue