Is there any reason for document uid to be string | null and not just string?
uid
string | null
string
PrismicDocumentHeader types
Hey, welcome!
Some documents will not have a UID in the object and a null type is required.