Open jacksmethurst opened 1 month ago
Yes, there was a bug in the latest version. I've updated the library types from the latest Notion types and unfortunately their types file had a error. They specified RichTextItemResponse
as type for rich text instead of RichTextItemResponse[]
🤦
I've published a fix.
Can you please update to the latest version of notion-ts-client (0.2.10) ?
Started from a clean Next install and unfortunately still get the issue:
Did you run npx notion-ts-client@latest generate
?
Also, check the file notion-api.types.ts
in the generated SDK folder under core/types
and see that the type TitlePropertyItemObjectResponse
is correct.
On my end, I'm still seeing RichTextItemResponse instead of RichTextItemResponse[], even after using npx notion-ts-client@latest generate
.
The generated types for a rich_text field should be an array? The above works but is giving errors.