added /dist

This commit is contained in:
2026-08-03 12:24:28 +02:00
parent dd97bb67fe
commit 05150e7ece
490 changed files with 6667 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import type { BasePayload } from 'payload';
import type { I18nConfig, LocalizedSlugs } from '../i18n/index.js';
/**
* Reads a document's slug in every locale — the map hreflang alternates are
* built from.
*
* Needs its own query because a document fetched in one locale returns `slug`
* as a plain string. Fetching with `locale: 'all'` turns *every* localized
* field into a locale→value map, which is right for the slug and wrong for
* everything else (a title map would break title composition), so this asks
* only for what it needs and at depth 0.
*/
export declare function slugsAcrossLocales({ id, collection, config, payload, }: {
collection: string;
config: I18nConfig;
id: number | string;
payload: BasePayload;
}): Promise<LocalizedSlugs>;