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
declarefunctionmakeRequest<QueryParam>(getFn: (client: {prop: number})=>QueryParam,params: NoInfer<QueryParam>,): void;// Hovering over `makeRequest` shows that `QueryParam` is inferred as `unknown` and `params` is obstensibly typed as `unknown` which is incongruous with this call is an error.makeRequest((client)=>client,// Using autocomplete here suggests globals, not `prop` like it should.{},// ^ Argument of type '{}' is not assignable to parameter of type '{ prop: number; }'.);makeRequest((client: {prop: number})=>client,// Using autocomplete here now suggests keys.{},);