type
DraftGlobalSlug
type DraftGlobalSlug<Config extends RiduConfigShape> = {
[Slug in GlobalSlug<Config>]: GlobalContractFor<Config, Slug> extends { drafts: true }
? Slug
: GlobalContractFor<Config, Slug> extends { drafts: false }
? never
: GlobalContractFor<Config, Slug>["versions"] extends true
? Slug
: never;
}[GlobalSlug<Config>]Global slugs with the generated drafts capability.
Related types
RiduConfigShapeThe minimum generated contract shape consumed by the SDK.
GlobalSlugThe generated union of global slugs.
GlobalContractForResolve the generated contract for one global slug.