suppose I have an interface and a generic function
const unused = foo<number>()
declare const a: typeof unused
// a: SimpleRecord<number>[]
but a function call will be triggered. If foo
has side effects, it will get rid of.
so ask me, how exactly can I achieve type ret < T > = ReturnType < typeof foo < T >
?