Object literal may only specify known properties, and 'buttons' does not exist in type 'Settings

Viewed 4343

I am using Angular 8 and following example from here but

enter image description here

and the exception is

enter image description here

Please help me solve this.

2 Answers

If the Type Settings has been defined by you or your team, you must add the buttons property as:

buttons: any[];

Or

buttons?: any[];

To keep retro-compatibilty.

If the type buttons has been defined by a third part library, instead, there's something wrong in the way you're using it and you should check the documentation to fix it.

Related