Admit I have a function like this
const createPerson = () => ({ firstName: \'John\', lastName: \'Doe\' })
How can I, without dec
This https://github.com/Microsoft/TypeScript/issues/4233#issuecomment-139978012 might help:
let r = true ? undefined : someFunction(); type ReturnType = typeof r;