import { API, FileInfo } from "jscodeshift"; /** * Deals with the first change in: * https://docs.forestadmin.com/documentation/how-tos/maintain/upgrade-notes-sql-mongodb/upgrade-to-v8#smart-actions * * Before: * collection("companies", { * actions: [{ * fields: [{ field: "a field" }], * hooks: { * change: { * "a field": ({ fields }) => { ,,, }, * }, * }, * }], * }); * * After: * collection("companies", { * actions: [{ * fields: [{ field: "a field", hook: 'hook_0' }], * hooks: { * change: { * hook_0: ({ fields }) => { ,,, }, * }, * }, * }], * }); * */ export default function (fileInfo: FileInfo, api: API): string; //# sourceMappingURL=transform-hook-naming.d.ts.map