Which function does need to have its types refine/fix?
dropWhile
What is the problem you faced with current types?
When the functor is a string (not an array of strings), the predicate is not forced to take the string as the parameter.
import * as Fae from "fae@v1.1.1"
function f(a: number) {
return a > 10
}
Fae.dropWhile(f, 'df')
Fae.dropLastWhile(f, 'df')
Playground
Expected behavior
It should have result in an error.
Additional context
The same problem was for dropLastWhile but it has been fixed #84. Change
Versions (please complete the following information):
Which function does need to have its types refine/fix?
dropWhileWhat is the problem you faced with current types?
When the functor is a
string(not an array ofstrings), the predicate is not forced to take thestringas the parameter.Playground
Expected behavior
It should have result in an error.
Additional context
The same problem was for
dropLastWhilebut it has been fixed #84. ChangeVersions (please complete the following information):