Dealing with Strictness
Learn to handle TypeScript strictness
We'll cover the following...
Current errors
Compiling the file, I get a few errors:
- The
venue-display
file that is kicking off the call to React is not handling a potential undefined value. - Turbolinks can only be default-imported using the
allowSyntheticDefaultImports
. - The
dispatch
call to redux-thunk includes a type error that I don’t understand yet.
This is fewer than I was expecting, honestly. You can get more errors with other strict options, but they don’t seem tremendously useful to me to talk about.
Fixes
I’m going to fix the Turbolinks issue by adding the line ...