total-typescript/typescript-generics-workshop

Solution 09 - Casting `config.events` as `any`

StyleShit opened this issue ยท 1 comments

Hey,

Why did you need to cast config.events to any in this line? Can't TS infer the object?

https://github.com/total-typescript/typescript-generics-workshop/blob/main/src/09-reducer.solution.ts#L29

BTW, great repo. Thanks! ๐Ÿ˜„

Correct, it can't!