diff --git a/examples/basics/src/components/Card.astro b/examples/basics/src/components/Card.astro
index aea28c83f..a87ab7291 100644
--- a/examples/basics/src/components/Card.astro
+++ b/examples/basics/src/components/Card.astro
@@ -5,7 +5,7 @@ export interface Props {
href: string;
}
-const { href, title, body } = Astro.props as Props;
+const { href, title, body } = Astro.props;
---
diff --git a/examples/basics/src/layouts/Layout.astro b/examples/basics/src/layouts/Layout.astro
index 1cea980c5..e39be4386 100644
--- a/examples/basics/src/layouts/Layout.astro
+++ b/examples/basics/src/layouts/Layout.astro
@@ -3,7 +3,7 @@ export interface Props {
title: string;
}
-const { title } = Astro.props as Props;
+const { title } = Astro.props;
---
diff --git a/examples/blog/src/components/HeaderLink.astro b/examples/blog/src/components/HeaderLink.astro
index 41e19de84..7f509e38c 100644
--- a/examples/blog/src/components/HeaderLink.astro
+++ b/examples/blog/src/components/HeaderLink.astro
@@ -1,7 +1,7 @@
---
export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
-const { href, class: className, ...props } = Astro.props as Props;
+const { href, class: className, ...props } = Astro.props;
const isActive = href === Astro.url.pathname;
---
diff --git a/examples/blog/src/layouts/BlogPost.astro b/examples/blog/src/layouts/BlogPost.astro
index 177fe2519..e956e1c59 100644
--- a/examples/blog/src/layouts/BlogPost.astro
+++ b/examples/blog/src/layouts/BlogPost.astro
@@ -15,7 +15,7 @@ export interface Props {
const {
content: { title, description, pubDate, updatedDate, heroImage },
-} = Astro.props as Props;
+} = Astro.props;
---
diff --git a/examples/component/packages/my-component/Button.astro b/examples/component/packages/my-component/Button.astro
index 5f32ce4e8..87943fa28 100644
--- a/examples/component/packages/my-component/Button.astro
+++ b/examples/component/packages/my-component/Button.astro
@@ -5,7 +5,7 @@ export interface Props extends Record {
const { type, ...props } = {
...Astro.props,
-} as Props;
+};
props.type = type || 'button';
---
diff --git a/examples/component/packages/my-component/Heading.astro b/examples/component/packages/my-component/Heading.astro
index 813c0c11b..75e4aa4e0 100644
--- a/examples/component/packages/my-component/Heading.astro
+++ b/examples/component/packages/my-component/Heading.astro
@@ -6,7 +6,7 @@ export interface Props extends Record {
const { level, role, ...props } = {
...Astro.props,
-} as Props;
+};
props.role = role || 'heading';
props['aria-level'] = level || '1';
diff --git a/examples/framework-alpine/src/components/Counter.astro b/examples/framework-alpine/src/components/Counter.astro
index 0aebebb98..cb5bbcb17 100644
--- a/examples/framework-alpine/src/components/Counter.astro
+++ b/examples/framework-alpine/src/components/Counter.astro
@@ -6,7 +6,7 @@ export interface Props {
initialCount?: number;
}
-const { initialCount = 0 } = Astro.props as Props;
+const { initialCount = 0 } = Astro.props;
---
diff --git a/examples/with-nanostores/src/layouts/Layout.astro b/examples/with-nanostores/src/layouts/Layout.astro
index dae8c6e1a..954513f79 100644
--- a/examples/with-nanostores/src/layouts/Layout.astro
+++ b/examples/with-nanostores/src/layouts/Layout.astro
@@ -6,7 +6,7 @@ export interface Props {
title: string;
}
-const { title } = Astro.props as Props;
+const { title } = Astro.props;
---