After creating the navigation slice and the navigation items i'm trying to access to the uid property of the Link field but it seems that the only available field is slice.primary.link.link_type but not slice.primary.link.uid (they're available on the response but not in the type definition).
I've also added ./.slicemachine/prismicio.d.ts in my tsconfig.json but still no luck; is there any way to add proper types?
Welcome to the Prismic community, and thanks for reaching out to us.
The fields in a slice you can access come under the data property, and the UID comes under results, so you can not access the UID field. I would like to know more about your use case. Why do you want to access the UID field while creating navigation?