diff --git a/examples/basics/src/components/Card.astro b/examples/basics/src/components/Card.astro
index aea28c83f8..a87ab7291e 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 1cea980c53..e39be4386b 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 41e19de844..7f509e38ca 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 177fe25195..e956e1c59f 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 5f32ce4e8b..87943fa280 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 813c0c11ba..75e4aa4e00 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 0aebebb985..cb5bbcb175 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 dae8c6e1ab..954513f79d 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;
---