We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export type Props
astro
1.6.15
None
pnpm
Windows
The following fail with an "Unexpected &" error:
--- export type Props = { a?: number } & {}; ---
--- export type Props = { a?: number } & Base; type Base = { b?: string } ---
This builds successfully:
--- type Base = { b?: string } export type Props = { a?: number } & Base; --- <p>hello</p>
https://stackblitz.com/edit/github-j2wy3d?file=src%2Fpages%2Findex.astro&on=stackblitz
The text was updated successfully, but these errors were encountered:
fix types
465ec41
workaround for withastro/astro#5614
Duplicate of withastro/compiler#554
(Also, exporting Props is not necessary, defining it is enough)
Sorry, something went wrong.
No branches or pull requests
What version of
astro
are you using?1.6.15
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Windows
Describe the Bug
The following fail with an "Unexpected &" error:
This builds successfully:
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-j2wy3d?file=src%2Fpages%2Findex.astro&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: