total-typescript/typescript-generics-workshop

Type error with solution to 04-generics-advanced/19-generic-interfaces-with-functions solution

seemaullal opened this issue · 1 comments

Someone pointed out that this is only an issue if noUncheckedIndexedAccess is turned on and it might be off in this repo by default (though I think I am using a slightly different TSConfig and noUncheckedIndexedAccess is on partially due to the suggestion of https://www.totaltypescript.com/tips/make-accessing-objects-safer-by-enabling-nouncheckedindexedaccess-in-tsconfig)