Closed haysclark closed 2 years ago
Moving forward, it might be best to use @strapi/strapi v4.3.4 which supports exporting types via:
strapi ts:generate-types
@haysclark thanks for posting the issue and making a patch 😃
I am aware that strapi can generate types with ts:generate
, but how can we utilize those scripts in this repo?
The problem is that the program does not generate a user interface. This is also related to #4. But maybe this can be solved by transitioning to strapi's own interface generation.
This issue has now been fixed and can be used in the newest version 0.2.9
I have a
Profile
object with a 1:1 relationship with a User object. When trying to generate types it throws the following error:Truncated
schema.json
for my Profile object:As a workaround, I made the following patch to line 73 of
Attibutes.js
. SourcePost patch, this is the exported structure:
You can see that the
user
attribute can not accessplugin::users-permissions.user
.