StarlightDocsEntry type to be exported #2997
Closed
ThePlenkov
started this conversation in
Feature Requests
Replies: 1 comment 10 replies
-
Hmm, I don’t think we can easily do that as I think the correct approach might be to use the import { z } from 'astro/zod';
import { docsSchema } from '@astrojs/starlight/schema';
type EntryInput = z.input<ReturnType<ReturnType<typeof docsSchema>>>; |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlight
are you using?0.32.3
What is your idea?
HI!
I'm writing a custom loader which should return starlight compatible document
For that reason I'd like to reuse the type StarlightDocsEntry which is not exported by the plugin currently.
Can we fix that please?
Thanks!
Why is this feature necessary?
This is needed to be able to write compatible with a current version plugins ( like custom docLoaders )
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions