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
{{ message }}
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
Sometimes, JavaScript libraries use arguments.length variable to access arguments passed to a function. Saltarelle substitutes not specified optional arguments with their default values. This is good for C# code, however it is not convenient for JavaScript interop scenarios, as one mentioned.
Is there an attribute that could be specified on a method or a delegate that optional arguments are not passed or passed as undefined?
Currently, the only way I know is to create multiple overloads of a same function.
The text was updated successfully, but these errors were encountered:
Sometimes, JavaScript libraries use
arguments.length
variable to access arguments passed to a function. Saltarelle substitutes not specified optional arguments with their default values. This is good for C# code, however it is not convenient for JavaScript interop scenarios, as one mentioned.Is there an attribute that could be specified on a method or a delegate that optional arguments are not passed or passed as
undefined
?Currently, the only way I know is to create multiple overloads of a same function.
The text was updated successfully, but these errors were encountered: