Move @turf/meta from js to ts for stricter typings
Part of a pet project to bring stricter typescript typings to the project overall (before we ship 7.0.0 proper?)
meta is a package that gets used in a bunch of places but has no dependencies itself so it was a good candidate for the first package. The things in the other packages are just fixing compile errors as a result of the changes in meta.
@mfedderly There's a lot of casting happening in these additions. Is your intention that they should be accepted for this PR? So that it doesn't get too big chasing it all down? Was it due to null not being accounted for as you mentioned? I actually remember chasing down some of these in the closed PR I mentioned above, it definitely got out of hand.
@mfedderly There's a lot of casting happening in these additions. Is your intention that they should be accepted for this PR? So that it doesn't get too big chasing it all down? Was it due to null not being accounted for as you mentioned? I actually remember chasing down some of these in the closed PR I mentioned above, it definitely got out of hand.
What casting specifically? Everything outside of turf/meta I tried to keep as minimal as possible for this PR, but the stuff inside meta also required a bunch of changes. If we can make the typings smarter to make the type inference better, I'd hope to do that over having to explicitly cast things.