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
parameters
field well enough. Using a nested type, thetype
parameter is overwritten:Currently we're just using the
json
type 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
type
parameter to something liketsType
, to avoid having to do it upstream?Beta Was this translation helpful? Give feedback.
All reactions