method
RiduClient.updateGlobal
Update a global, optionally guarded by its revision.
Arguments
| Argument | Type | Description |
|---|---|---|
slug | Slug | The slug value. |
data | GlobalDraftUpdateFor< | The data value. |
options | MutationOptions< | The options value. |
Returns
The declared result.
Promise<GlobalOutputFor<Config, Slug>>Full signature (2 overloads)
RiduClient.updateGlobal<Slug extends DraftGlobalSlug<Config>>(
slug: Slug,
data: GlobalDraftUpdateFor<Config, Slug>,
options: UpdateOptions<LocaleFor<Config>, true> & { draft: true; },
): Promise<GlobalOutputFor<Config, Slug>>
RiduClient.updateGlobal<Slug extends GlobalSlug<Config>>(
slug: Slug,
data: GlobalUpdateFor<Config, Slug>,
options?: UpdateOptions<LocaleFor<Config>, GlobalDraftsFor<Config, Slug>>,
): Promise<GlobalOutputFor<Config, Slug>>Related types
DraftGlobalSlugGlobal slugs with the generated drafts capability.
GlobalDraftUpdateForGenerated input for staging an incomplete global working draft.
UpdateOptionsUpdating a draft-capable resource may explicitly stage a working draft.
GlobalOutputForResolve a global output type.
GlobalSlugThe generated union of global slugs.
GlobalUpdateForResolve a global update input type.
MutationOptionsLocalized mutation options with optimistic concurrency.