This hopefully fixes #871 - #871 I still need to update maplibre-gl-inspect to allow this to be fixed.
This is in continue to: - #850 - #848 The last files should be converted as part of this PR, there are only a handful left.
This completes the migration to typescript of all the non react components code. The only changes introduced besides types are the type checks using `"something" in object` which narrows down types in typescript.