UNPKG

@payloadcms/plugin-import-export

Version:

Import-Export plugin for Payload

22 lines 1 kB
import type { Config } from 'payload'; import type { ImportExportPluginConfig, ToCSVFunction } from './types.js'; export declare const importExportPlugin: (pluginConfig: ImportExportPluginConfig) => (config: Config) => Config; declare module 'payload' { interface FieldCustom { 'plugin-import-export'?: { /** * When `true` the field is **completely excluded** from the import-export plugin: * - It will not appear in the “Fields to export” selector. * - It is hidden from the preview list when no specific fields are chosen. * - Its data is omitted from the final CSV / JSON export. * @default false */ disabled?: boolean; /** * Custom function used to modify the outgoing csv data by manipulating the data, siblingData or by returning the desired value */ toCSV?: ToCSVFunction; }; } } //# sourceMappingURL=index.d.ts.map