contentful-typescript-codegen icon indicating copy to clipboard operation
contentful-typescript-codegen copied to clipboard

feat: improve content type sys field type

Open marcogrcr opened this issue 1 year ago • 1 comments

WHAT?

Improve the sys field type on content types so that they re-use the Sys type from the contentful module.

WHY?

The Sys type can change over time. For example, the current type is missing the revision, space and environment fields. By re-using there's no need to manually keep these types in sync.

HOW?

yarn test

marcogrcr avatar May 01 '24 20:05 marcogrcr

As a temporary workaround. Users can use this script.

marcogrcr avatar May 02 '24 00:05 marcogrcr