error TS2814: Function with bodies can only merge with classes that are ambient.
Bad Code ❌
function cannot be named after your
class, so you will have to rename your function:
Fixed Code ✔️
Alternatively you can declare an ambient class which gets implemented by your function: