-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat: Export types like SitemapUrl
#429
Comments
Please follow the docs for this https://nuxtseo.com/docs/sitemap/guides/dynamic-urls#_2-create-your-own-endpoint |
I cant because the API is an external API, not a Nuxt project. If you would just export the types this would help a lot. |
Oh I see, sorry, I misunderstood the issue. I would just suggest copy+pasting the types as I may make changes to the interface that could break your implementation. I'm open to creating a Nitro Sitemap module in the future, which may be a better thing to track. |
But when you make changes this is exactly the point of not copy pasting, and instead importing from the package itself :) Btw Nitro Sitemap module would be amazing for me personally! However this issue is also in the perspective of every other external API. |
🆒 Your use case
I am having a third party backend api (Nitro) and I want to create an endpoint for sitemap urls. For this I need to return an array of SitemapUrl. I would love to use this interface:
But unfortunately this interface is not exported from the package. This interface also contains more interfaces that should be exported as well:
Changefreq
,AlternativeEntry
,GoogleNewsEntry
,ImageEntry
andVideoEntry
.🆕 The solution you'd like
Export SitemapUrl and the other interfaces. I see in the code they are, but they dont end up to be importable.
🔍 Alternatives you've considered
Currently I copy line 329 to line 429 into my project.
The text was updated successfully, but these errors were encountered: