Skip to content

VexResourceSlug

VexResourceSlug = CollectionSlug | GlobalSlug

Defined in: packages/core/src/types/generated.ts:72

Any slug a document can be addressed by — a collection or a global.

Fields are declared with the same factories (text(), number(), …) in both defineCollection and defineGlobal, so anything a field’s callback types itself against has to accept either.