Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
26 lines
824 B
Plaintext
26 lines
824 B
Plaintext
import type { I18nClient } from '@payloadcms/translations';
|
|
import type { SanitizedCollectionConfig, SanitizedGlobalConfig, SanitizedPermissions, StaticLabel } from 'payload';
|
|
/**
|
|
* @deprecated Import from `payload` instead
|
|
*/
|
|
export declare enum EntityType {
|
|
collection = "collections",
|
|
global = "globals"
|
|
}
|
|
export type EntityToGroup = {
|
|
entity: SanitizedCollectionConfig;
|
|
type: EntityType.collection;
|
|
} | {
|
|
entity: SanitizedGlobalConfig;
|
|
type: EntityType.global;
|
|
};
|
|
export type NavGroupType = {
|
|
entities: {
|
|
label: StaticLabel;
|
|
slug: string;
|
|
type: EntityType;
|
|
}[];
|
|
label: string;
|
|
};
|
|
export declare function groupNavItems(entities: EntityToGroup[], permissions: SanitizedPermissions, i18n: I18nClient): NavGroupType[];
|
|
//# sourceMappingURL=groupNavItems.d.ts.map |