Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentEach callback args typed as nullable #2706

Open
graue opened this issue Aug 29, 2024 · 1 comment
Open

segmentEach callback args typed as nullable #2706

graue opened this issue Aug 29, 2024 · 1 comment

Comments

@graue
Copy link

graue commented Aug 29, 2024

The TypeScript types for segmentEach in @turf/meta have all the arguments to the callback as nullable, but it doesn't appear from either the docs or the code that they can ever be null. This makes it necessary to write pointless checks for undefined to get my code to typecheck.

Using Turf 7.1.0; this is still the case in latest master.

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

No branches or pull requests

2 participants
@graue and others