Replies: 2 comments
-
|
you may use |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Ah thank you. For future Googlers (since this was difficult to search): https://www.contentlayer.dev/docs/reference/source-files/make-source#fieldoptions |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a series of documents which look like this:
However I'm having trouble typing the
parametersfield well enough. Using a nested type, thetypeparameter is overwritten:Currently we're just using the
jsontype and the TypeScript type is reverting toany, which gives us the data but means we lose TypeScript typing.Is there a way to 'rename' my
typeparameter to something liketsType, to avoid having to do it upstream?Beta Was this translation helpful? Give feedback.
All reactions