@webiny/api-headless-cms-ddb
Version:
DynamoDB storage operations plugin for Headless CMS API.
17 lines (16 loc) • 514 B
TypeScript
import { CmsModelField } from "@webiny/api-headless-cms/types";
import { Field } from "./types";
import { PluginsContainer } from "@webiny/plugins";
interface Params {
fields: CmsModelField[];
plugins: PluginsContainer;
}
/**
* This method will map the fieldId (fieldId -> field) to the actual field.
*
* In case of nested fields, fieldId is all the parent fieldIds + current one, joined by the dot (.).
*/
export declare const createFields: (params: Params) => {
[x: string]: Field;
};
export {};