You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
currently when defining a computed field of type
enum
like this:this generates a ts schema:
note that the regular
enum
field is correct, but the computedenum
field is of typeenum
i guess this is because of
contentlayer/packages/@contentlayer/core/src/generation/generate-types.ts
Line 120 in dcc4885
steps to reproduce:
git clone [email protected]:stefanprobst/issue-contentlayer-computed-field-types.git
cd issue-contentlayer-computed-field-types
npm i
npm run generate
cat .contentlayer/generated/types.d.ts
The text was updated successfully, but these errors were encountered: