summaryrefslogtreecommitdiff
path: root/examples/ssr/src/components
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2022-10-12 09:48:29 -0300
committerGravatar GitHub <noreply@github.com> 2022-10-12 09:48:29 -0300
commitf604ef6c694e88bcf2f22ce97a33bf131074326f (patch)
treec5579e65fb4c6c0ba854933998e5993137a9c0ce /examples/ssr/src/components
parent640ce72d336101ff3bc02a596373ddbf1713e5db (diff)
downloadastro-f604ef6c694e88bcf2f22ce97a33bf131074326f.tar.gz
astro-f604ef6c694e88bcf2f22ce97a33bf131074326f.tar.zst
astro-f604ef6c694e88bcf2f22ce97a33bf131074326f.zip
Run astro check on all examples in CI (#5022)
* Run astro check on all examples in CI * Output stderr * Build Astro before running checks * Making things faster + colors * Fix errors inside examples * Add congrats message * Revert unentional change to tsconfigs * Remove more unneeded changes
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;