method
RiduClient.versions
List stored versions with locale-dependent snapshot types.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
id | string | The id value. |
options | Options | | The options value. |
Returns
The declared result.
Promise<Version<LocaleResult<OutputFor<Config, Slug>, AllLocalesOutputFor<Config, Slug>, Options>>[]>Full signature
RiduClient.versions<
Slug extends VersionCollectionSlug<Config>,
const Options extends LocaleOptions<LocaleFor<Config>> | undefined = undefined,
>(
collection: Slug,
id: string,
options?: Options,
): Promise<
Version<LocaleResult<OutputFor<Config, Slug>, AllLocalesOutputFor<Config, Slug>, Options>>[]
>Related types
VersionCollectionSlugCollection slugs with the generated versions capability.
LocaleOptionsLocalized read and write options.
VersionA stored version snapshot; its wire keys intentionally use capital initials.
OutputForResolve a collection document output type.
AllLocalesOutputForResolve locale-keyed collection output when generated, otherwise ordinary output.