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
17 lines
849 B
Plaintext
17 lines
849 B
Plaintext
import type { I18nClient } from '@payloadcms/translations';
|
|
import type { ClientField, SanitizedFieldPermissions, SanitizedFieldsPermissions } from 'payload';
|
|
import type { ReducedField } from '../elements/WhereBuilder/types.js';
|
|
type ReduceFieldOptionsArgs = {
|
|
fieldPermissions?: SanitizedFieldPermissions | SanitizedFieldsPermissions;
|
|
fields: ClientField[];
|
|
i18n: I18nClient;
|
|
labelPrefix?: string;
|
|
pathPrefix?: string;
|
|
};
|
|
/**
|
|
* Transforms a fields schema into a flattened array of fields with labels and values.
|
|
* Used in the `WhereBuilder` component to render the fields in the dropdown.
|
|
*/
|
|
export declare const reduceFieldsToOptions: ({ fieldPermissions, fields, i18n, labelPrefix, pathPrefix: pathPrefixFromArgs, }: ReduceFieldOptionsArgs) => ReducedField[];
|
|
export {};
|
|
//# sourceMappingURL=reduceFieldsToOptions.d.ts.map |