For this function:
function first(x: number, y: string) {
return {
a: x,
b: y
};
}
function second(z: typeof first()) {
return {
c: 6,
...z
}
}
typeof first() is, ofcourse, invalid,
I'd like to use the inferred output type of first in second's signature.
Is it possible (I'm assuming no but hope to be surprised)
Thanks!