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
The inferred payload type is args: void. Calling Parameters<typeof getAnything> returns [args?: void | undefined]:
// What we havetypeParams=Parameters<typeofgetAnything>// Params = [args?: void | undefined]getAnything()// worksgetAnything(undefined)// works// What we wanttypeParams=Parameters<typeofgetAnything>// Params = []getAnything()// worksgetAnything(undefined)// doesn't work
It works well enough for most use cases, but is not 100% correct (i.e., it will allow a call without arguments, but will also allow a call with undefined).
The text was updated successfully, but these errors were encountered:
For any
void
backend Operation, such as:The inferred payload type is
args: void
. CallingParameters<typeof getAnything>
returns[args?: void | undefined]
:It works well enough for most use cases, but is not 100% correct (i.e., it will allow a call without arguments, but will also allow a call with
undefined
).The text was updated successfully, but these errors were encountered: