Fix some sneaky strict null issues for array/object access
TypeScript always assumes that array index access and object index type accesses return a non-null value. This was causing a few strict null issues to be masked where we were returning `array[i] || null` but the return type was not marked as nullable The fix is to use `Map` types instead as these have the proper types
Showing
想要评论请 注册 或 登录