diff --git a/examples/basics/src/components/Card.astro b/examples/basics/src/components/Card.astro index c68fa2ab34..a1e0ccf6eb 100644 --- a/examples/basics/src/components/Card.astro +++ b/examples/basics/src/components/Card.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { title: string; body: string; href: string; diff --git a/examples/basics/src/layouts/Layout.astro b/examples/basics/src/layouts/Layout.astro index 7479f9c390..39e8681009 100644 --- a/examples/basics/src/layouts/Layout.astro +++ b/examples/basics/src/layouts/Layout.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { title: string; } diff --git a/examples/blog/src/components/BaseHead.astro b/examples/blog/src/components/BaseHead.astro index 7113e39d83..e11d111498 100644 --- a/examples/blog/src/components/BaseHead.astro +++ b/examples/blog/src/components/BaseHead.astro @@ -3,7 +3,7 @@ // all pages through the use of the component. import '../styles/global.css'; -export interface Props { +interface Props { title: string; description: string; image?: string; diff --git a/examples/blog/src/components/FormattedDate.astro b/examples/blog/src/components/FormattedDate.astro index 1a40fbc091..1bcce73a2b 100644 --- a/examples/blog/src/components/FormattedDate.astro +++ b/examples/blog/src/components/FormattedDate.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { date: Date; } diff --git a/examples/component/src/MyComponent.astro b/examples/component/src/MyComponent.astro index 6ad20a0605..2a3ebcea54 100644 --- a/examples/component/src/MyComponent.astro +++ b/examples/component/src/MyComponent.astro @@ -1,6 +1,6 @@ --- // Write your component code in this file! -export interface Props { +interface Props { prefix?: string; } --- diff --git a/examples/deno/src/components/Layout.astro b/examples/deno/src/components/Layout.astro index 60a7e6d871..7d329d0a43 100644 --- a/examples/deno/src/components/Layout.astro +++ b/examples/deno/src/components/Layout.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { title: string; } diff --git a/examples/framework-alpine/src/components/Counter.astro b/examples/framework-alpine/src/components/Counter.astro index cb5bbcb175..b895d57be8 100644 --- a/examples/framework-alpine/src/components/Counter.astro +++ b/examples/framework-alpine/src/components/Counter.astro @@ -2,7 +2,7 @@ // Full Astro Component Syntax: // https://docs.astro.build/core-concepts/astro-components/ -export interface Props { +interface Props { initialCount?: number; } diff --git a/examples/hackernews/src/components/Comment.astro b/examples/hackernews/src/components/Comment.astro index 6137f4e1d0..07e55d19b9 100644 --- a/examples/hackernews/src/components/Comment.astro +++ b/examples/hackernews/src/components/Comment.astro @@ -1,10 +1,10 @@ --- +import type { IComment } from '../types.js'; import For from './For.astro'; import Show from './Show.astro'; import Toggle from './Toggle.astro'; -import type { IComment } from '../types.js'; -export interface Props { +interface Props { comment: IComment; } diff --git a/examples/hackernews/src/components/For.astro b/examples/hackernews/src/components/For.astro index 885c22a65f..6eae88e277 100644 --- a/examples/hackernews/src/components/For.astro +++ b/examples/hackernews/src/components/For.astro @@ -1,7 +1,7 @@ --- import Show from './Show.astro'; -export interface Props { +interface Props { each: Iterable; } diff --git a/examples/hackernews/src/components/Show.astro b/examples/hackernews/src/components/Show.astro index 7e08877849..ccb642fd70 100644 --- a/examples/hackernews/src/components/Show.astro +++ b/examples/hackernews/src/components/Show.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { when: T | number | boolean | undefined | null; } diff --git a/examples/hackernews/src/components/Story.astro b/examples/hackernews/src/components/Story.astro index ee43bab17b..e91748a30a 100644 --- a/examples/hackernews/src/components/Story.astro +++ b/examples/hackernews/src/components/Story.astro @@ -1,8 +1,8 @@ --- -import Show from './Show.astro'; import type { IStory } from '../types.js'; +import Show from './Show.astro'; -export interface Props { +interface Props { story: IStory; } diff --git a/examples/hackernews/src/components/Toggle.astro b/examples/hackernews/src/components/Toggle.astro index 87b686981e..799fca08cf 100644 --- a/examples/hackernews/src/components/Toggle.astro +++ b/examples/hackernews/src/components/Toggle.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { open?: boolean; } diff --git a/examples/middleware/src/components/Card.astro b/examples/middleware/src/components/Card.astro index c68fa2ab34..a1e0ccf6eb 100644 --- a/examples/middleware/src/components/Card.astro +++ b/examples/middleware/src/components/Card.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { title: string; body: string; href: string; diff --git a/examples/middleware/src/layouts/Layout.astro b/examples/middleware/src/layouts/Layout.astro index 22100824e6..b3def26372 100644 --- a/examples/middleware/src/layouts/Layout.astro +++ b/examples/middleware/src/layouts/Layout.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { title: string; } diff --git a/examples/portfolio/src/components/Icon.astro b/examples/portfolio/src/components/Icon.astro index 1eccb9991a..92cff492ae 100644 --- a/examples/portfolio/src/components/Icon.astro +++ b/examples/portfolio/src/components/Icon.astro @@ -2,7 +2,7 @@ import type { HTMLAttributes } from 'astro/types'; import { iconPaths } from './IconPaths'; -export interface Props { +interface Props { icon: keyof typeof iconPaths; color?: string; gradient?: boolean; diff --git a/examples/with-markdoc/src/components/Aside.astro b/examples/with-markdoc/src/components/Aside.astro index 5d92a0993c..ec93314f25 100644 --- a/examples/with-markdoc/src/components/Aside.astro +++ b/examples/with-markdoc/src/components/Aside.astro @@ -2,7 +2,7 @@ // Inspired by the `Aside` component from docs.astro.build // https://github.com/withastro/docs/blob/main/src/components/Aside.astro -export interface Props { +interface Props { type?: 'note' | 'tip' | 'caution' | 'danger'; title?: string; } diff --git a/examples/with-markdoc/src/layouts/Layout.astro b/examples/with-markdoc/src/layouts/Layout.astro index fa47dafcef..b1362340eb 100644 --- a/examples/with-markdoc/src/layouts/Layout.astro +++ b/examples/with-markdoc/src/layouts/Layout.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { title: string; } diff --git a/examples/with-nanostores/src/layouts/Layout.astro b/examples/with-nanostores/src/layouts/Layout.astro index 954513f79d..5927ebab99 100644 --- a/examples/with-nanostores/src/layouts/Layout.astro +++ b/examples/with-nanostores/src/layouts/Layout.astro @@ -1,8 +1,8 @@ --- -import CartFlyoutToggle from '../components/CartFlyoutToggle'; import CartFlyout from '../components/CartFlyout'; +import CartFlyoutToggle from '../components/CartFlyoutToggle'; -export interface Props { +interface Props { title: string; } @@ -34,7 +34,7 @@ const { title } = Astro.props; :root { --font-family: system-ui, sans-serif; --font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem); - --font-size-lg: clamp(1.2rem, 0.7vw + 1.2rem, 1.5rem); + --font-size-lg: clamp(1.2rem, 0.7vw + 1.2rem, 1.5rem); --font-size-xl: clamp(2.0rem, 1.75vw + 1.35rem, 2.75rem); --color-text: hsl(12, 5%, 4%); diff --git a/packages/astro-prism/Prism.astro b/packages/astro-prism/Prism.astro index f26e53c138..9306024a18 100644 --- a/packages/astro-prism/Prism.astro +++ b/packages/astro-prism/Prism.astro @@ -1,7 +1,7 @@ --- import { runHighlighterWithAstro } from './dist/highlighter'; -export interface Props { +interface Props { class?: string; lang?: string; code: string; diff --git a/packages/astro/components/Code.astro b/packages/astro/components/Code.astro index 40f99bcd19..a990e877a4 100644 --- a/packages/astro/components/Code.astro +++ b/packages/astro/components/Code.astro @@ -3,7 +3,7 @@ import type * as shiki from 'shiki'; import { renderToHtml } from 'shiki'; import { getHighlighter } from './Shiki.js'; -export interface Props { +interface Props { /** The code to highlight. Required. */ code: string; /** diff --git a/packages/astro/performance/fixtures/utils/Aside.astro b/packages/astro/performance/fixtures/utils/Aside.astro index 5d92a0993c..ec93314f25 100644 --- a/packages/astro/performance/fixtures/utils/Aside.astro +++ b/packages/astro/performance/fixtures/utils/Aside.astro @@ -2,7 +2,7 @@ // Inspired by the `Aside` component from docs.astro.build // https://github.com/withastro/docs/blob/main/src/components/Aside.astro -export interface Props { +interface Props { type?: 'note' | 'tip' | 'caution' | 'danger'; title?: string; } diff --git a/packages/astro/test/fixtures/content-ssr-integration/src/components/HeaderLink.astro b/packages/astro/test/fixtures/content-ssr-integration/src/components/HeaderLink.astro index e8e2e103b4..81b6cde6d7 100644 --- a/packages/astro/test/fixtures/content-ssr-integration/src/components/HeaderLink.astro +++ b/packages/astro/test/fixtures/content-ssr-integration/src/components/HeaderLink.astro @@ -1,5 +1,5 @@ --- -export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {} +interface Props extends astroHTML.JSX.AnchorHTMLAttributes {} const { href, class: className, ...props } = Astro.props; diff --git a/packages/astro/test/fixtures/content-static-paths-integration/src/components/HeaderLink.astro b/packages/astro/test/fixtures/content-static-paths-integration/src/components/HeaderLink.astro index e8e2e103b4..81b6cde6d7 100644 --- a/packages/astro/test/fixtures/content-static-paths-integration/src/components/HeaderLink.astro +++ b/packages/astro/test/fixtures/content-static-paths-integration/src/components/HeaderLink.astro @@ -1,5 +1,5 @@ --- -export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {} +interface Props extends astroHTML.JSX.AnchorHTMLAttributes {} const { href, class: className, ...props } = Astro.props; diff --git a/packages/astro/test/fixtures/css-import-as-inline/src/layouts/Layout.astro b/packages/astro/test/fixtures/css-import-as-inline/src/layouts/Layout.astro index f1a62a537b..588419a392 100644 --- a/packages/astro/test/fixtures/css-import-as-inline/src/layouts/Layout.astro +++ b/packages/astro/test/fixtures/css-import-as-inline/src/layouts/Layout.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { title: string; } diff --git a/packages/astro/test/fixtures/css-inline-stylesheets/always/src/layouts/Layout.astro b/packages/astro/test/fixtures/css-inline-stylesheets/always/src/layouts/Layout.astro index b78de296ce..0a26655189 100644 --- a/packages/astro/test/fixtures/css-inline-stylesheets/always/src/layouts/Layout.astro +++ b/packages/astro/test/fixtures/css-inline-stylesheets/always/src/layouts/Layout.astro @@ -1,8 +1,8 @@ --- -import '../imported.css'; import Button from '../components/Button.astro'; +import '../imported.css'; -export interface Props { +interface Props { title: string; } diff --git a/packages/astro/test/fixtures/css-inline-stylesheets/auto/src/layouts/Layout.astro b/packages/astro/test/fixtures/css-inline-stylesheets/auto/src/layouts/Layout.astro index b78de296ce..0a26655189 100644 --- a/packages/astro/test/fixtures/css-inline-stylesheets/auto/src/layouts/Layout.astro +++ b/packages/astro/test/fixtures/css-inline-stylesheets/auto/src/layouts/Layout.astro @@ -1,8 +1,8 @@ --- -import '../imported.css'; import Button from '../components/Button.astro'; +import '../imported.css'; -export interface Props { +interface Props { title: string; } diff --git a/packages/astro/test/fixtures/css-inline-stylesheets/never/src/layouts/Layout.astro b/packages/astro/test/fixtures/css-inline-stylesheets/never/src/layouts/Layout.astro index b78de296ce..0a26655189 100644 --- a/packages/astro/test/fixtures/css-inline-stylesheets/never/src/layouts/Layout.astro +++ b/packages/astro/test/fixtures/css-inline-stylesheets/never/src/layouts/Layout.astro @@ -1,8 +1,8 @@ --- -import '../imported.css'; import Button from '../components/Button.astro'; +import '../imported.css'; -export interface Props { +interface Props { title: string; } diff --git a/packages/astro/test/fixtures/head-injection/src/components/SlotsRender.astro b/packages/astro/test/fixtures/head-injection/src/components/SlotsRender.astro index 85a57916e4..6ca7d20637 100644 --- a/packages/astro/test/fixtures/head-injection/src/components/SlotsRender.astro +++ b/packages/astro/test/fixtures/head-injection/src/components/SlotsRender.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { title: string; subtitle: string; content?: string; diff --git a/packages/astro/test/fixtures/unused-slot/src/components/Card.astro b/packages/astro/test/fixtures/unused-slot/src/components/Card.astro index c77e31672f..d1208062a2 100644 --- a/packages/astro/test/fixtures/unused-slot/src/components/Card.astro +++ b/packages/astro/test/fixtures/unused-slot/src/components/Card.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { title: string, body: string, href: string, diff --git a/packages/integrations/markdoc/test/fixtures/propagated-assets/src/components/Aside.astro b/packages/integrations/markdoc/test/fixtures/propagated-assets/src/components/Aside.astro index 5d92a0993c..ec93314f25 100644 --- a/packages/integrations/markdoc/test/fixtures/propagated-assets/src/components/Aside.astro +++ b/packages/integrations/markdoc/test/fixtures/propagated-assets/src/components/Aside.astro @@ -2,7 +2,7 @@ // Inspired by the `Aside` component from docs.astro.build // https://github.com/withastro/docs/blob/main/src/components/Aside.astro -export interface Props { +interface Props { type?: 'note' | 'tip' | 'caution' | 'danger'; title?: string; } diff --git a/packages/integrations/mdx/test/fixtures/css-head-mdx/src/layouts/ContentLayout.astro b/packages/integrations/mdx/test/fixtures/css-head-mdx/src/layouts/ContentLayout.astro index e670601361..1e4b6a6f8b 100644 --- a/packages/integrations/mdx/test/fixtures/css-head-mdx/src/layouts/ContentLayout.astro +++ b/packages/integrations/mdx/test/fixtures/css-head-mdx/src/layouts/ContentLayout.astro @@ -1,6 +1,6 @@ --- import BaseHead from "../components/BaseHead.astro"; -export interface Props { +interface Props { title: string; } diff --git a/packages/markdown/component/Markdown.astro b/packages/markdown/component/Markdown.astro index ac0cf58618..a9d095fb56 100644 --- a/packages/markdown/component/Markdown.astro +++ b/packages/markdown/component/Markdown.astro @@ -1,5 +1,5 @@ --- -export interface Props { +interface Props { content?: string; }