Type for TitleField
missing direction
field (mismatch in typings versus data from your endpoint)
#331
Labels
bug
Something isn't working
Versions
Reproduction
In the data from the cdn/api we get a
direction
field in the data forheadings
andparagraphs
, while in the Type definition this is not typed at all:Steps to reproduce
Consume
Query
from '@prismicio/client' then browse to the fieldTitleField
There you will see:
Now add a paragraph and heading to your workspace and consume the Query endpoint. Inspect the data, you will notice the direction.
What is expected?
The direction to be typed as well. Inside your definition of a textNodeBase for example or the specific heading and paragraph (i don't know your internals, so i assume it belongs in the RRText definition :)):
What is actually happening?
Not typed, so my type builders are unable to use auto generated typings. Please add them correctly according to your own data schema. At least for Paragraph and Headings but just check your schema one more time :)
The text was updated successfully, but these errors were encountered: