TS2349
Cannot invoke an expression whose type lacks a call signature. Type 'Promise
' has no compatible call signatures.
Broken Code ❌
function bugged(param: Promise<Object>): void {
param().then(() => console.log('error TS2349'));
}Fixed Code ✔️
function bugged(param: Promise<Object>): void {
param.then(() => console.log('error TS2349'));
}