Initial commit

This commit is contained in:
2026-08-02 20:55:23 +02:00
parent 411f484b40
commit d558d18d9a
295 changed files with 9 additions and 5880 deletions
-15
View File
@@ -1,15 +0,0 @@
import type { BasePayload } from 'payload';
import type { GlobalQueryOptions } from './getGlobal.js';
/** Slug of the SiteSettings global defined by the plugin. */
export declare const SITE_SETTINGS_SLUG = "site-settings";
/**
* Fetches the SiteSettings global.
*
* Generic over the return type so the client can pass their generated
* `SiteSetting` type for full type safety, while still working without it.
*
* @example
* import type { SiteSetting } from '@/payload-types'
* const settings = await getSiteSettings<SiteSetting>(payload, { locale: 'pl' })
*/
export declare function getSiteSettings<T = Record<string, unknown>>(payload: BasePayload, options?: GlobalQueryOptions): Promise<T>;