Oak-Digital / types-4-strapi-2

Automate the creation of typescript interfaces for your strapi 4 projects
MIT License
24 stars 4 forks source link

Populated fields are nullable #20

Closed Alexnortung closed 1 year ago

Alexnortung commented 1 year ago

Not sure if this has been changed in later versions of strapi, but when populating a component, it may be null.

example json, where video is a component that should be populated

{
  "id": 2,
  "__component": "blocks.video-block",
  "length": null,
  "video": null
}