docs: wrong import for collections#beforeValidate (#3863)

This commit is contained in:
Hulpoi George-Valentin
2023-10-25 12:38:26 +03:00
committed by GitHub
parent 3032e0b5a2
commit d6826f792c

View File

@@ -91,7 +91,7 @@ Please do note that this does not run before the client-side validation. If you
3. `validate` runs on the server
```ts
import { CollectionBeforeOperationHook } from 'payload/types'
import { CollectionBeforeValidateHook } from 'payload/types'
const beforeValidateHook: CollectionBeforeValidateHook = async ({
data, // incoming data to update or create with