Open blobmold opened 1 year ago
it will work if you do a casting of the field as Block (fields.select as Block)
select: {
...fields.select,
fields: [
...(fields.select as Block).fields,
{
name: 'hasMultiple',
label: 'Has Multiple',
type: 'checkbox',
defaultValue: false,
},
],
},
This plugin is now being maintained in the Packages Directory of the Payload Monorepo. This repo will soon be archived and all open issues be closed. This issue, however, will be transferred over. Please refer to this open discussion for more details.
I am encountering a type error whenever I am trying to extend existing blocks.
This is the error I am getting:
Property 'fields' does not exist on type 'Block | ((fieldConfig?: boolean | FieldConfig) => Block)'. Property 'fields' does not exist on type '(fieldConfig?: boolean | FieldConfig) => Block'.ts(2339)