Skip to main content

Error TS2384: Overload signatures must all be ambient or non-ambient.

error TS2384: Overload signatures must all be ambient or non-ambient

Solution 1:


If your code contains print function definition, Typescript compiler throws this error message. for example

function print(customerObject) {
console.log(customerObject);
}

It also throws "error TS2394: Overload signature is not compatible with function implementation."

Comments