Skip to content

BUG: RichText api code block field mismatch with Typescript Types #135

Open
@Gregorein

Description

@Gregorein

Hi, as in issue title -

on version @graphcms/[email protected], type NodeRendererType expects incorrect key for Code Block:code_block?: DefaultNodeRenderer; line 60

However this can be tested with current hygraph studio that the returned type is code-block which results in data not being rendered:
query fragment:

      ... on FieldRichText {
        content {
          json
        }
      }

returns:

{
  "content": {
    "json": {
      "children": [
        {
          "type": "code-block",
          "children": [
            {
              "text": ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions