docs: field hook example configuration (#1329)
This commit is contained in:
@@ -27,9 +27,9 @@ Field-level hooks offer incredible potential for encapsulating your logic. They
|
||||
|
||||
Example field configuration:
|
||||
```ts
|
||||
import { CollectionConfig } from 'payload/types';
|
||||
import { Field } from 'payload/types';
|
||||
|
||||
const ExampleCollection: CollectionConfig = {
|
||||
const ExampleField: Field = {
|
||||
name: 'name',
|
||||
type: 'text',
|
||||
// highlight-start
|
||||
|
||||
Reference in New Issue
Block a user