add dist
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
import { getGlobal } from './getGlobal.js';
|
||||
/** Slug of the SiteSettings global defined by the plugin. */ export 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 function getSiteSettings(payload, options) {
|
||||
return getGlobal(payload, SITE_SETTINGS_SLUG, options);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=getSiteSettings.js.map
|
||||
Reference in New Issue
Block a user