Skip to content

Commit

Permalink
nit: export props has been unnecessary.. forever (#7646)
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored Jul 14, 2023
1 parent 7a6b48a commit b3b6404
Show file tree
Hide file tree
Showing 32 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion examples/basics/src/components/Card.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
title: string;
body: string;
href: string;
Expand Down
2 changes: 1 addition & 1 deletion examples/basics/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
title: string;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// all pages through the use of the <BaseHead /> component.
import '../styles/global.css';
export interface Props {
interface Props {
title: string;
description: string;
image?: string;
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/src/components/FormattedDate.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
date: Date;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/component/src/MyComponent.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
// Write your component code in this file!
export interface Props {
interface Props {
prefix?: string;
}
---
Expand Down
2 changes: 1 addition & 1 deletion examples/deno/src/components/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
title: string;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-alpine/src/components/Counter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Full Astro Component Syntax:
// https://docs.astro.build/core-concepts/astro-components/
export interface Props {
interface Props {
initialCount?: number;
}
Expand Down
4 changes: 2 additions & 2 deletions examples/hackernews/src/components/Comment.astro
Original file line number Diff line number Diff line change
@@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/hackernews/src/components/For.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import Show from './Show.astro';
export interface Props<T> {
interface Props<T> {
each: Iterable<T>;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/hackernews/src/components/Show.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props<T> {
interface Props<T> {
when: T | number | boolean | undefined | null;
}
Expand Down
4 changes: 2 additions & 2 deletions examples/hackernews/src/components/Story.astro
Original file line number Diff line number Diff line change
@@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/hackernews/src/components/Toggle.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
open?: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/middleware/src/components/Card.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
title: string;
body: string;
href: string;
Expand Down
2 changes: 1 addition & 1 deletion examples/middleware/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
title: string;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/portfolio/src/components/Icon.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdoc/src/components/Aside.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdoc/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
title: string;
}
Expand Down
6 changes: 3 additions & 3 deletions examples/with-nanostores/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -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;
}
Expand Down Expand Up @@ -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%);
Expand Down
2 changes: 1 addition & 1 deletion packages/astro-prism/Prism.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import { runHighlighterWithAstro } from './dist/highlighter';
export interface Props {
interface Props {
class?: string;
lang?: string;
code: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/components/Code.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/performance/fixtures/utils/Aside.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
const { href, class: className, ...props } = Astro.props;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
const { href, class: className, ...props } = Astro.props;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
title: string;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
import '../imported.css';
import Button from '../components/Button.astro';
import '../imported.css';
export interface Props {
interface Props {
title: string;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
import '../imported.css';
import Button from '../components/Button.astro';
import '../imported.css';
export interface Props {
interface Props {
title: string;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
import '../imported.css';
import Button from '../components/Button.astro';
import '../imported.css';
export interface Props {
interface Props {
title: string;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
title: string;
subtitle: string;
content?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
title: string,
body: string,
href: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import BaseHead from "../components/BaseHead.astro";
export interface Props {
interface Props {
title: string;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/component/Markdown.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
content?: string;
}
Expand Down

0 comments on commit b3b6404

Please sign in to comment.