This is a typescipt package that generates typescript types from the contentful content models.
npm install contentful-typescript-types
create a .env file with the following variables at the root of your project
CONTENTFUL_MANAGEMENT_ACCESS_TOKEN="contentful management access token"
CONTENTFUL_SPACE_ID="contentful space id"
CONTENTFUL_ENVIRONMENT_ID="contentful environment id"
then run the following command
npx contentful-typescript-types
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.