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
This would ensure that undefined indexing like state.thoughts.thoughtIndex[id] is properly typed. (Technically state.thoughts.thoughtIndex[id] should always be defined, since an id can only be known after it has been loaded into State. However, there are some cases where a thought is undefined after an async operation or unmount.)
Not sure how many files this will touch. Start by turning this on and seeing how many files are affected so we can assess the effort required.
The text was updated successfully, but these errors were encountered:
Enable
noUncheckedIndexedAccess
in the tsconfig.This would ensure that undefined indexing like
state.thoughts.thoughtIndex[id]
is properly typed. (Technicallystate.thoughts.thoughtIndex[id]
should always be defined, since an id can only be known after it has been loaded into State. However, there are some cases where a thought is undefined after an async operation or unmount.)Not sure how many files this will touch. Start by turning this on and seeing how many files are affected so we can assess the effort required.
The text was updated successfully, but these errors were encountered: