contentful-typescript-codegen
contentful-typescript-codegen copied to clipboard
Generate TypeScript interfaces from a Contentful environment
I've noticed that all the collections are not generated, they should extends [`CollectionProp`](https://github.com/contentful/contentful-management.js/blob/5c36cabd0fdd010a8a7f1a4f5e0a4a3998d758cb/lib/common-types.ts#L210) from `contentful-management`
Hello! First of all, would like to say that your app is a game changer for contentful. I'm using Next.js (Commerce variant) and would like to have a smooth way...
I have a `prettierrc.json` in my root directory that specifies single quotes, but the generated output using double quotes. ```json { "trailingComma": "all", "tabWidth": 2, "semi": false, "singleQuote": true }...
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.4.1 to 19.0.3. Release notes Sourced from semantic-release's releases. v19.0.3 19.0.3 (2022-06-09) Bug Fixes log-repo: use the original form of the repo url to remove the need...
When we generate our types we are seeing `import { Document } from '@contentful/rich-text-types';` when that type isnt used anywhere. The result is that our type checks and thus builds...
Hello ! First of all thanks for this package, It will be really useful to me 👍 I have this issue while trying to generate types. I created the getContentfulEnvironment...
My generated type looks something like this: ```ts export interface Link extends Entry { sys: {--snip--}; } ``` `LinkFields` looks something like this: ```ts export interface LinkFields { /** Link...
Would it be possible to export a union of all generated Entries/Content Types? Use cases: - When I call `ContentfulClientApi.getEntries` I know I should be passing one of these types...