DocumentByResourceSlug
DocumentByResourceSlug<
TSlug> =TSlugextendsGlobalSlug?DocumentByGlobalSlug<TSlug> :TSlugextendsCollectionSlug?DocumentByCollectionSlug<TSlug> :TDocument
Defined in: packages/core/src/types/generated.ts:80
Resolves the generated document interface for a collection OR global slug.
Dispatches on which union the slug belongs to, so one field type parameter serves both kinds of resource.
Type Parameters
Section titled “Type Parameters”TSlug extends VexResourceSlug = VexResourceSlug