Skip to content
New issue

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

Handle TypeScript syntax within definePage() #57

Open
posva opened this issue Aug 29, 2022 · 3 comments
Open

Handle TypeScript syntax within definePage() #57

posva opened this issue Aug 29, 2022 · 3 comments
Labels
⚡️ enhancement improvement over an existing feature 🙏 help wanted help in this issue is welcome

Comments

@posva
Copy link
Owner

posva commented Aug 29, 2022

Using TS syntax will produce Syntax errors:

<script setup>
definePage({
  alias: 'thing' as string,
})
</script>

Not sure how to support this but I think it should be related to adding ?vue&type... query to import. TODO: check with the vite vue plugin

@undead-voron
Copy link

@posva
Could you take a look at pr for this issue, please #238

@posva posva added ⚡️ enhancement improvement over an existing feature 🙏 help wanted help in this issue is welcome labels Feb 21, 2024
@Heunsig
Copy link

Heunsig commented Mar 19, 2024

@posva Do you have any updates?

@tynliuk
Copy link

tynliuk commented May 6, 2024

@posva, joining Heunsig's question, is there any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡️ enhancement improvement over an existing feature 🙏 help wanted help in this issue is welcome
Projects
None yet
Development

No branches or pull requests

4 participants