From 275055b86f0da80bd7fc2ba49239b3bc52334116 Mon Sep 17 00:00:00 2001 From: Nick <139508085+midlomarketing@users.noreply.github.com> Date: Wed, 23 Apr 2025 12:21:03 -0400 Subject: [PATCH] Update form-builder.mdx BeforeEmail doesn't exist in '@payloadcms/plugin-form-builder' but it does in '@payloadcms/plugin-form-builder/types.' Importing anything from '@payload-types' doesn't work, as it should be '@/payload-types' --- docs/plugins/form-builder.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/plugins/form-builder.mdx b/docs/plugins/form-builder.mdx index 7c1ceb20569..9a28f40c0c9 100644 --- a/docs/plugins/form-builder.mdx +++ b/docs/plugins/form-builder.mdx @@ -123,9 +123,9 @@ formBuilderPlugin({ For full types with `beforeChangeParams`, you can import the types from the plugin: ```ts -import type { BeforeEmail } from '@payloadcms/plugin-form-builder' +import type { BeforeEmail } from '@payloadcms/plugin-form-builder/types' // Your generated FormSubmission type -import type { FormSubmission } from '@payload-types' +import type { FormSubmission } from '@/payload-types' // Pass it through and 'data' or 'originalDoc' will now be typed const beforeEmail: BeforeEmail = (