-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Hi there! I've been trying to get rid of a $FlowFixMe in our codebase and have isolated it down to this:
That is,
// @flow
export default (f: Function) => f.apply.bind(f);
yields
3: export default (f: Function) => f.apply.bind(f);
^ call of method `bind`. Callable signature not found in
3: export default (f: Function) => f.apply.bind(f);
^ function type
Even though...
const foo = () => console.log('Works');
const bar = f => f.apply.bind(f);
bar(foo)(); // Works
ziadkh0