Plugin and generating types #10949
Unanswered
siccifolium
asked this question in
Q&A
Replies: 1 comment
-
You can generate them in your dev folder and then import from there (or copy) to your plugin. You shouldn't expose them to the user. |
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.
-
Hey,
so I'm currently implementing a plugin which defines some collections so a
CollectionConfig
and append them to the payload config passed to the plugin. So in my plugin I have a bunch ofCollectionConfig
objects. In a regular project I would directly add them to mypayload.config.ts
file and I could then just run the generate types command and I would get the types for all my collections.In this case however there is no such
payload.config.ts
file and therefore there is no way to generate types. So my question is how do I go about generating types for collections which are defined in my plugin?Beta Was this translation helpful? Give feedback.
All reactions