docs: field hook example configuration (#1329)

This commit is contained in:
Nut Pinyo
2022-11-11 19:19:18 +07:00
committed by GitHub
parent cc5fa943ad
commit 32b8f46bf2

View File

@@ -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