Fix imported type using a type-only import

This commit is contained in:
prototypa
2023-08-22 22:56:57 -04:00
parent c1f36e9f79
commit 3022d4424b
9 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
---
import { Form } from '~/types';
import type { Form } from '~/types';
const { inputs, textarea, disclaimer, button = 'Contact us', description = '' } = Astro.props as Form;
---

View File

@ -2,7 +2,7 @@
import FormContainer from '~/components/ui/Form.astro';
import Headline from '~/components/ui/Headline.astro';
import WidgetWrapper from '~/components/ui/WidgetWrapper.astro';
import { Contact } from '~/types';
import type { Contact } from '~/types';
const {
title = await Astro.slots.render('title'),

View File

@ -1,7 +1,7 @@
---
import { Icon } from 'astro-icon/components';
import Image from '~/components/common/Image.astro';
import { CallToAction } from '~/types';
import type { CallToAction } from '~/types';
export interface Props {
title?: string;

View File

@ -1,5 +1,5 @@
---
import { Stats } from '~/types';
import type { Stats } from '~/types';
import WidgetWrapper from '../ui/WidgetWrapper.astro';
import Headline from '../ui/Headline.astro';
import { Icon } from 'astro-icon/components';

View File

@ -1,7 +1,7 @@
---
import { Icon } from 'astro-icon/components';
import Headline from '../ui/Headline.astro';
import { Steps } from '~/types';
import type { Steps } from '~/types';
import WidgetWrapper from '../ui/WidgetWrapper.astro';
const {

View File

@ -3,7 +3,7 @@ import PageLayout from '~/layouts/PageLayout.astro';
import Header from '~/components/widgets/Header.astro';
import { headerData } from '~/navigation';
import { MetaData } from '~/types';
import type { MetaData } from '~/types';
export interface Props {
metadata?: MetaData;

View File

@ -12,7 +12,7 @@ import SiteVerification from "~/components/common/SiteVerification.astro"
import Analytics from "~/components/common/Analytics.astro"
import BasicScripts from '~/components/common/BasicScripts.astro';
import { MetaData as MetaDataType } from '~/types';
import type { MetaData as MetaDataType } from '~/types';
export interface Props {
metadata?: MetaDataType;

View File

@ -1,7 +1,7 @@
---
import Layout from '~/layouts/PageLayout.astro';
import { MetaData } from '~/types';
import type { MetaData } from '~/types';
export interface Props {
frontmatter: {

View File

@ -6,7 +6,7 @@ import Announcement from '~/components/widgets/Announcement.astro';
import { headerData, footerData } from '~/navigation';
import { MetaData } from '~/types';
import type { MetaData } from '~/types';
export interface Props {
metadata?: MetaData;