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 }}
Repository navigation
Callback in mapped type implicitly has 'any' type #23429
typeEvents={ready: ()=>voiderror: (e: Error)=>voidreconnecting: (params: {attempt: number,delay: number})=>void}typeRedisClient={on<EextendskeyofEvents>(event: E,f: Events[E]): void}letc: RedisClientc.on('ready',()=>4)// BAD - arity is propagated, return type is anyc.on('error',e=>4)// BAD - e is anyc.on('reconnecting',p=>p.attempt)// BAD - p is any
Activity
bcherny commentedon Apr 22, 2018
This is happening on 2.8.1 too:
Playground
russelldavis commentedon Jun 5, 2023
I just checked this in the TS playground, looks like this has been fixed (since v3.5.1)
RyanCavanaugh commentedon Jul 23, 2025
Confirmed