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
I tested the following type signature, and it correctly inferred the list of variable parameter types, so maybe we can use it to simplify the signature of the useResolved function.
functionresolve<Textendsunknown[],Rextends{[KinkeyofT]: T[K]extendsObservable<infer V> ? V : T[K]extends()=> infer V ? V : T[K]},>(vals: [...T],fn: (...args: [...R])=>void){}resolve([$(1),$('2'),3,()=>4],(_1,_2,_3,_4)=>{})
The text was updated successfully, but these errors were encountered:
I tested the following type signature, and it correctly inferred the list of variable parameter types, so maybe we can use it to simplify the signature of the useResolved function.
The text was updated successfully, but these errors were encountered: