“Yes, notably strong”
“Yes — watch mode”
“is particularly interesting because the schema lives alongside your code, and TypeGen can watch both the schema and GROQ queries.”
“That matters because it can type the shape your query actually returns, including projections and dereferenced data, rather than merely generating an interface representing the entire CMS document.”
“### Payload is another strong option”
“is essentially TypeScript-native: collections and globals are defined in your Payload config, and payload generate:types produces interfaces from that configuration.”
“It can also generate separate input types for write operations.”
“The advantage is architectural: your schema and application code are already in the same repository, so there is less opportunity for the CMS schema and TypeScript source to diverge.”
“Mostly model/input types; query shape is not the main focus”
“### Strapi: automatic during development”
“Yes in development, automatic generation is supported; docs note configuration around it”
“generates contentTypes.d.ts and components.d.ts with ts:generate-types.”
“So Strapi can keep types automatically synchronized inside the Strapi project, although sharing those generated types cleanly with a separate frontend is less seamless.”
“So Strapi can keep types automatically synchronized inside the Strapi project, although sharing those generated types cleanly with a separate frontend is less seamless.”
“Model types; query-result typing depends on API/tooling”
“### Contentful: generated, but not inherently live”
“has good TypeScript support through cf-content-types-generator.”
“It reads the Contentful model and generates entry skeletons, type guards, and related types.”
“SDK types are strong; arbitrary query shapes generally need additional tooling”
“But a content-model change doesn't inherently modify your Git repository's types. You need to rerun generation.”
“SDK types are strong; arbitrary query shapes generally need additional tooling”
“Hygraph | Usually GraphQL Code Generator against the GraphQL schema”
“excellent GraphQL operation typing, but depends on running GraphQL Code Generator”
“Yes, if you generate types for your GraphQL operations”
“excellent GraphQL operation typing, but depends on running GraphQL Code Generator”
“Via CI/codegen workflow rather than the CMS magically updating your repo”
