Hi @JakubMisek,
I am encountering the same warning in vscode, with a plain anonymous (variable) function, as illustrated by screenshot below. The $fnError method takes the second argument as optional, as a default value is provided in the definition. Is it possible to fix that ?

Thanks 😊