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
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
TypeScript Version: 2.9.0-dev.20180414
Code
Expected behavior:
obj
is{ x: number }
.Actual behavior:
src/a.ts(3,8): error TS7006: Parameter 'obj' implicitly has an 'any' type.
The text was updated successfully, but these errors were encountered: