From b3b640435b1a6630a40be7dbe81f21a9693856d2 Mon Sep 17 00:00:00 2001
From: Erika <3019731+Princesseuh@users.noreply.github.com>
Date: Fri, 14 Jul 2023 15:57:06 +0200
Subject: [PATCH] nit: export props has been unnecessary.. forever (#7646)
---
examples/basics/src/components/Card.astro | 2 +-
examples/basics/src/layouts/Layout.astro | 2 +-
examples/blog/src/components/BaseHead.astro | 2 +-
examples/blog/src/components/FormattedDate.astro | 2 +-
examples/component/src/MyComponent.astro | 2 +-
examples/deno/src/components/Layout.astro | 2 +-
examples/framework-alpine/src/components/Counter.astro | 2 +-
examples/hackernews/src/components/Comment.astro | 4 ++--
examples/hackernews/src/components/For.astro | 2 +-
examples/hackernews/src/components/Show.astro | 2 +-
examples/hackernews/src/components/Story.astro | 4 ++--
examples/hackernews/src/components/Toggle.astro | 2 +-
examples/middleware/src/components/Card.astro | 2 +-
examples/middleware/src/layouts/Layout.astro | 2 +-
examples/portfolio/src/components/Icon.astro | 2 +-
examples/with-markdoc/src/components/Aside.astro | 2 +-
examples/with-markdoc/src/layouts/Layout.astro | 2 +-
examples/with-nanostores/src/layouts/Layout.astro | 6 +++---
packages/astro-prism/Prism.astro | 2 +-
packages/astro/components/Code.astro | 2 +-
packages/astro/performance/fixtures/utils/Aside.astro | 2 +-
.../content-ssr-integration/src/components/HeaderLink.astro | 2 +-
.../src/components/HeaderLink.astro | 2 +-
.../fixtures/css-import-as-inline/src/layouts/Layout.astro | 2 +-
.../css-inline-stylesheets/always/src/layouts/Layout.astro | 4 ++--
.../css-inline-stylesheets/auto/src/layouts/Layout.astro | 4 ++--
.../css-inline-stylesheets/never/src/layouts/Layout.astro | 4 ++--
.../head-injection/src/components/SlotsRender.astro | 2 +-
.../test/fixtures/unused-slot/src/components/Card.astro | 2 +-
.../fixtures/propagated-assets/src/components/Aside.astro | 2 +-
.../fixtures/css-head-mdx/src/layouts/ContentLayout.astro | 2 +-
packages/markdown/component/Markdown.astro | 2 +-
32 files changed, 39 insertions(+), 39 deletions(-)
diff --git a/examples/basics/src/components/Card.astro b/examples/basics/src/components/Card.astro
index c68fa2ab3..a1e0ccf6e 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 7479f9c39..39e868100 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 7113e39d8..e11d11149 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 1a40fbc09..1bcce73a2 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 6ad20a060..2a3ebcea5 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 60a7e6d87..7d329d0a4 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 cb5bbcb17..b895d57be 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 6137f4e1d..07e55d19b 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 885c22a65..6eae88e27 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 7e0887784..ccb642fd7 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 ee43bab17..e91748a30 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 87b686981..799fca08c 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 c68fa2ab3..a1e0ccf6e 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 22100824e..b3def2637 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 1eccb9991..92cff492a 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 5d92a0993..ec93314f2 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 fa47dafce..b1362340e 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 954513f79..5927ebab9 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 f26e53c13..9306024a1 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 40f99bcd1..a990e877a 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 5d92a0993..ec93314f2 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 e8e2e103b..81b6cde6d 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 e8e2e103b..81b6cde6d 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 f1a62a537..588419a39 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 b78de296c..0a2665518 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 b78de296c..0a2665518 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 b78de296c..0a2665518 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 85a57916e..6ca7d2063 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 c77e31672..d1208062a 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 5d92a0993..ec93314f2 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 e67060136..1e4b6a6f8 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 ac0cf5861..a9d095fb5 100644
--- a/packages/markdown/component/Markdown.astro
+++ b/packages/markdown/component/Markdown.astro
@@ -1,5 +1,5 @@
---
-export interface Props {
+interface Props {
content?: string;
}