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

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

Handle TypeScript syntax within definePage() #57

posva opened this issue Aug 29, 2022 · 3 comments
Assignees
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?

@posva posva moved this to 🆕 New in unplugin-vue-router May 27, 2024
@posva posva moved this from 🆕 New to 📋 Backlog in unplugin-vue-router May 27, 2024
@posva posva moved this from 📋 Backlog to 🏗 In progress in unplugin-vue-router Jun 18, 2024
@posva posva self-assigned this Jun 18, 2024
@posva posva moved this from 🏗 In progress to 👀 In review in unplugin-vue-router Jun 18, 2024
@posva posva closed this as completed in 4fbff23 Jun 21, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in unplugin-vue-router Jun 21, 2024
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
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants