docs: wrong import for collections#beforeValidate (#3863)
This commit is contained in:
committed by
GitHub
parent
3032e0b5a2
commit
d6826f792c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user