Skip to content

Fix @turf/line-offset's return type regression#3009

Merged
smallsaucepan merged 1 commit intomasterfrom
mf/fix-lineoffset-types
Jan 27, 2026
Merged

Fix @turf/line-offset's return type regression#3009
smallsaucepan merged 1 commit intomasterfrom
mf/fix-lineoffset-types

Conversation

@mfedderly
Copy link
Copy Markdown
Collaborator

The migration to TypeScript removed the explicit return type (accidentally), which broke types. This reintroduces the return annotation to fix the regression.

Fixes #3006

Copy link
Copy Markdown
Member

@smallsaucepan smallsaucepan left a comment

Choose a reason for hiding this comment

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

Awesome. Thank you. Will merge and release.

@mfedderly
Copy link
Copy Markdown
Collaborator Author

Thanks! Sorry for the blip 😞

@smallsaucepan smallsaucepan merged commit 8a1ed5d into master Jan 27, 2026
4 checks passed
@mfedderly mfedderly deleted the mf/fix-lineoffset-types branch January 27, 2026 23:48
rexxars pushed a commit to rexxars/turf that referenced this pull request Feb 11, 2026
Fixed @turf/line-offset's return type regression
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.

@turf/lineOffset return type does not keep the geojson type anymore

2 participants