-
Notifications
You must be signed in to change notification settings - Fork 945
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrating remaining JS modules to Typescript (part 1) (#2543)
* Converting turf-ellipse to typescript. * Converting turf-flip to typescript. * Forgot to remove redundant turf-flip index.d.ts * Converting turf-flatten to typescript. * Converting turf-explode to typescript. * Converting turf-envelope to typescript. * Converting turf-dissolve to Typescript. Missed a couple of changes to turf-flip package.json in an earlier commit. * Converting turf-rewind to Typescript. * Converting turf-tag to Typescript. * Converting turf-sample to Typescript. Forgot to delete d.ts from turf-tag during last commit. * Converting turf-point-on-feature to Typescript. * Converting turf-points-within-polygon to Typescript. One type test isn't working just yet (mixed Points and MultiPoints). Need to confirm this is actually valid use of the function. * Converting turf-polygon-smooth to Typescript. * Revisiting turf-points-within-polygon as it needs to be able to accept a mixture of Point and MultiPoint features. * Converting turf-polygon-tangents to Typescript. Few oddities uncovered here. First was that an unnecessary parameter (polygon) was being passed to processPolygon. Second was enext param passed into processPolygon was simply being overwritten and not returned - converted to a local const. Noting in history in case a future developer is chasing a bug. * Converting turf-sector to Typescript. Forgot to remove d.ts from turf-polygon-tangents in a prior commit. * Converting turf-shortest-path to Typescript. Adding type test step into turf-sector (test existed, just weren't being run). * Converting turf-simplify to Typescript. * Converting turf-difference to Typescript. * Removing rollup from freshly converted typescript modules. Lots of minor monorepolint fixes. Overloading a few function signatures so types.ts test pass. Fixing a few places where option parsing / defaults was half baked. Fixing a couple of modules with built in libs that were building locally but not when doing the final turf CDN build. * Removing minDistance param from turf-shortest-path per this convo #2538 (comment) Changing options handling to not change the options object in place. Removing a couple of missed d.ts files. * Incorporating review feedback, including: subbing ?? for || in option handling in a few places, fixing overloaded function typedefs, reinstating some incorrectly removed runtime checks, adding license details for types we pulled in for locally hosted libraries.
- Loading branch information
1 parent
407619b
commit 66f9b2d
Showing
76 changed files
with
934 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "../../tsconfig.shared.json", | ||
"compilerOptions": { | ||
"outDir": "dist/js" | ||
}, | ||
"files": ["index.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "../../tsconfig.shared.json", | ||
"compilerOptions": { | ||
"outDir": "dist/js" | ||
}, | ||
"files": ["index.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.