Skip to content

Migrate @turf/line-offset to TypeScript#2974

Merged
mfedderly merged 2 commits intomasterfrom
mf/line-offset-typescript
Dec 17, 2025
Merged

Migrate @turf/line-offset to TypeScript#2974
mfedderly merged 2 commits intomasterfrom
mf/line-offset-typescript

Conversation

@mfedderly
Copy link
Copy Markdown
Collaborator

Another PR getting us closer to a single build system for the whole project

options = options || {};
if (!isObject(options)) throw new Error("options is invalid");
var units = options.units;
const { units = "kilometers" } = options;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the units default value not being set? 😬

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's eventually set in @turf/helpers' lengthToRadians

@mfedderly mfedderly merged commit 9b1469d into master Dec 17, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants