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
22 lines
828 B
Plaintext
22 lines
828 B
Plaintext
import type { SanitizedConfig } from '../config/types.js';
|
|
import type { FlattenedField } from '../fields/config/types.js';
|
|
/**
|
|
* Get the field by its schema path, e.g. group.title, array.group.title
|
|
* If there were any localized on the path, `pathHasLocalized` will be true and `localizedPath` will look like:
|
|
* `group.<locale>.title` // group is localized here
|
|
*/
|
|
export declare const getFieldByPath: ({ config, fields, includeRelationships, localizedPath, path, }: {
|
|
config?: SanitizedConfig;
|
|
fields: FlattenedField[];
|
|
includeRelationships?: boolean;
|
|
localizedPath?: string;
|
|
/**
|
|
* The schema path, e.g. `array.group.title`
|
|
*/
|
|
path: string;
|
|
}) => {
|
|
field: FlattenedField;
|
|
localizedPath: string;
|
|
pathHasLocalized: boolean;
|
|
} | null;
|
|
//# sourceMappingURL=getFieldByPath.d.ts.map |