fix types
Co-authored-by: Petter Sæterøy <potetmos1@users.noreply.github.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
---
|
||||
import { translations } from '@data/i18n.js';
|
||||
import { translations, type Lang } from '@data/i18n';
|
||||
import { Image } from 'astro:assets';
|
||||
import benker from '@assets/studioBenker.png';
|
||||
const { lang = 'no' } = Astro.props;
|
||||
const { lang = 'no' } = Astro.props as { lang?: Lang };
|
||||
const t = translations[lang].about;
|
||||
---
|
||||
|
||||
|
Reference in New Issue
Block a user