You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supplied parameters do not match any signature of call target: parameter type mismatch. Parameter 'options' should have type assignable to 'FreeJqGrid.FormDeletingOptions', but it has type '{ [index: string]: (data: JQueryXHR) => string; errorTextFormat: (data: JQueryXHR) => string}'.
It caused because the second parameter of the method is options: FreeJqGrid.FormDeletingOptions
The interface doesn't have errorTextFormat. But in fact it is used in javascript code of the grid
I managed to fix the error when added a property errorTextFormat into interface FormDeletingOptions in free-jqgrid.d.ts errorTextFormat?: (this: BodyTable, data: JQueryXHR) => string;
Is this correct way?
The text was updated successfully, but these errors were encountered:
askrinnik
changed the title
TypeScript: Rersharper error when in errorTextFormat is set for delGridRow()
TypeScript: Rersharper error when errorTextFormat is set for delGridRow()
Jan 25, 2018
Thanks you Alexander for the feedback! You are right - some properties / callbacks missing in FreeJqGrid.FormDeletingOptions. I looked one more thought the code and extended FormDeletingOptions (see the commit). The problem should be fixed now.
Hi @OlegKi
I wanted to invoke delGridRow method with setting errorTextFormat:
But I got an error from Resharper:
It caused because the second parameter of the method is options: FreeJqGrid.FormDeletingOptions
The interface doesn't have errorTextFormat. But in fact it is used in javascript code of the grid
I managed to fix the error when added a property errorTextFormat into interface FormDeletingOptions in free-jqgrid.d.ts
errorTextFormat?: (this: BodyTable, data: JQueryXHR) => string;
Is this correct way?
The text was updated successfully, but these errors were encountered: