Having a typescript piece of code like the following:
const f = () => {}
const o = { ...f }
// o === {}
Why doesn't TS complain about spreading a function? I would expect this to be ok in plain javascript (since functions are objects in the end) but I don't understand why TS allows this (does it make any sense for a function to be iterable?)