Replies: 1 comment
-
You can import from Payload and then add your own types and pass the generic type from your generated types. |
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.
-
I have a NextJS frontend making an API GET request to Payload which is returning some data. I'm using the
generate:types
command to output my collection types into a file in my NextJS folder so I can use those types on the frontend. I see Payload has this file: https://github.com/payloadcms/payload/blob/7c03e5510cb6bb60c035a5e8e747cb4f1a399dc3/src/mongoose/types.tsIs it possible to have the generate:types include other things in this file like the type returned from it's REST API?
Beta Was this translation helpful? Give feedback.
All reactions