I'm currently working with Ag-Grid in my angular application and am trying to implement a custom cell renderer. The tutorial I followed uses ICellRendererParams for the parameter type passed to the init event.
agInit(params: ICellRendererParams): void {
this.params = params;
this.type = this.params.type || null;
}
However, when I attempt to access a custom property from those parameters, the linter throws the error Property 'type' does not exist on type 'ICellRendererParams'. The issue is resolved when I change the type to any. I've also tried creating a custom model class that extends ICellRendererParams, adding the 'type' property to it, and using that class instead of ICellRendererParams. My question is whether this approach is correct or if there is a cleaner way to access a property from the interface.