Hello everyone! Completely new to DatoCMS after working with Strapi for a while, and Iām having major issues getting the typescript codegen things to work.
Iāve followed this guide but Iām not having any success.
For one, the graphql.config.yml file has a spelling error in the custom scalars:
āJsonField: unkownā should be unknown, right?
But when I fix that I get a type error on the StructuredText component:
"Type '{ __typename?: "StartpageModelContentField" | undefined; value: unknown; } | null | undefined' is not assignable to type 'Document | Node | StructuredText<Record, Record> | null | undefined'."
...
"Type 'unknown' is not assignable to type 'Document'"
In other similar issues on here, a suggested solution is to make the JsonField scalar have the type " StructuredText<Record, Record>", but StructuredText doesnāt get imported in to the generated.ts file, and if I import it manually Iām getting the error āGeneric type āRecordā requires 2 type argument(s).ts(2314)ā
Any help would be much appreciated, itās definitely possible Iām doing something else completely wrong.