is the best practice with creating a simple Block (e.g one to show a bullet point list) to define the fields in the Block or create a separate collection for every block. Trying to define the fields in the Block seemed to not actually generate an interface:
import type { Block } from 'payload'
export const HeroBlock: Block = {
slug: 'hero',
interfaceName: 'HeroBlock',
fields: [
{
name: 'title',
type: 'text',
required: true,
},
{
name: 'subtitle',
type: 'text',
},
{
name: 'primaryButton',
type: 'group',
fields: [
{
name: 'text',
type: 'text',
},
{
name: 'link',
type: 'text',
}
]
},
{
name: 'secondaryButton',
type: 'group',
fields: [
{
name: 'text',
type: 'text',
},
{
name: 'link',
type: 'text',
}
]
}
]
} ```
This should have generated a HeroBlock interface from my understanding but running `pnpm payload generate:types` doesn't seem to do anything of the sort.