summaryrefslogtreecommitdiff
path: root/examples/ssr/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ssr/src/components')
-rw-r--r--examples/ssr/src/components/ProductListing.astro6
-rw-r--r--examples/ssr/src/components/TextDecorationSkip.astro4
2 files changed, 10 insertions, 0 deletions
diff --git a/examples/ssr/src/components/ProductListing.astro b/examples/ssr/src/components/ProductListing.astro
index fb3cff00f..96b6ea581 100644
--- a/examples/ssr/src/components/ProductListing.astro
+++ b/examples/ssr/src/components/ProductListing.astro
@@ -1,4 +1,10 @@
---
+import type { Product } from '../api';
+
+interface Props {
+ products: Product[];
+}
+
const { products } = Astro.props;
---
diff --git a/examples/ssr/src/components/TextDecorationSkip.astro b/examples/ssr/src/components/TextDecorationSkip.astro
index ccd866a09..524732d04 100644
--- a/examples/ssr/src/components/TextDecorationSkip.astro
+++ b/examples/ssr/src/components/TextDecorationSkip.astro
@@ -1,4 +1,8 @@
---
+interface Props {
+ text: string;
+}
+
const { text } = Astro.props;
const words = text.split(' ');
const last = words.length - 1;