mobily / ts-belt

🔧 Fast, modern, and practical utility library for FP in TypeScript.
https://mobily.github.io/ts-belt
MIT License
1.08k stars 30 forks source link

Misleading annotations for Array.range #91

Open JoelLefkowitz opened 9 months ago

JoelLefkowitz commented 9 months ago

In version 3.13.1 the annotations for Array.range say:

/** Returns a new array of numbers from `start` (inclusive) to `finish` (exclusive). */

On https://mobily.github.io/ts-belt/api/array/ the docs say:

Returns a new inclusive array of numbers from start to finish (it returns an empty array when start > finish).

This is confusing since you get an extra element in the array. Can we release a patch with the correct annotations?