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 1, 2024. It is now read-only.
Seems fairly easy to do, at the cost of some more unreadable signatures to maintain. E.g., for the first command overload, the return type would become:
seeing this example I wonder if it would be better to have something like
voidcmd2({params: "param",invalidates: {a: "foo"}})// when the query has paramsvoidcmd2({invalidates: {a: "foo"}})// when the query does not have params
As per title, a possible (minor?) type-level enhancement. The following tests don't pass with the current
command
singature:Seems fairly easy to do, at the cost of some more unreadable signatures to maintain. E.g., for the first
command
overload, the return type would become:I'm not sure about the possible negative impacts, I didn't test on real usages yet
The text was updated successfully, but these errors were encountered: