diff --git a/.changeset/mighty-roses-give.md b/.changeset/mighty-roses-give.md new file mode 100644 index 00000000000..6f928f0ada9 --- /dev/null +++ b/.changeset/mighty-roses-give.md @@ -0,0 +1,5 @@ +--- +"@clerk/astro": patch +--- + +Fixes an issue where not setting an element in an unstyled component causes a TypeScript error. diff --git a/packages/astro/src/astro-components/unstyled/SignInButton.astro b/packages/astro/src/astro-components/unstyled/SignInButton.astro index 9b6ae3e8d48..d4d0845c897 100644 --- a/packages/astro/src/astro-components/unstyled/SignInButton.astro +++ b/packages/astro/src/astro-components/unstyled/SignInButton.astro @@ -1,7 +1,7 @@ --- import type { HTMLTag, Polymorphic } from 'astro/types' import type { SignInProps } from "@clerk/types"; -type Props = Polymorphic +type Props = Polymorphic import { generateSafeId } from '@clerk/astro/internal'; diff --git a/packages/astro/src/astro-components/unstyled/SignOutButton.astro b/packages/astro/src/astro-components/unstyled/SignOutButton.astro index b82749d7395..f5630dbd073 100644 --- a/packages/astro/src/astro-components/unstyled/SignOutButton.astro +++ b/packages/astro/src/astro-components/unstyled/SignOutButton.astro @@ -1,7 +1,7 @@ --- import type { HTMLTag, Polymorphic } from 'astro/types' import type { SignOutOptions } from '@clerk/types'; -type Props = Polymorphic<{ as: Tag; } & SignOutOptions> +type Props = Polymorphic<{ as: Tag; } & SignOutOptions> import { generateSafeId } from '@clerk/astro/internal'; diff --git a/packages/astro/src/astro-components/unstyled/SignUpButton.astro b/packages/astro/src/astro-components/unstyled/SignUpButton.astro index 2cb2e3f7056..2555692093d 100644 --- a/packages/astro/src/astro-components/unstyled/SignUpButton.astro +++ b/packages/astro/src/astro-components/unstyled/SignUpButton.astro @@ -1,7 +1,7 @@ --- import type { HTMLTag, Polymorphic } from 'astro/types' import type { SignUpProps } from "@clerk/types"; -type Props = Polymorphic +type Props = Polymorphic import { generateSafeId } from '@clerk/astro/internal';