Typescript class: “Overload signature is not compatible with function implementation”
You get that compilation error because the signature of the implementation function does not satisfy the empty constructor you declared. As you want to have the default constructor, it should be: class MyItem { public name: string; public surname: string; public category: string; public address: string; constructor(); constructor(name:string, surname: string, category: string, address?: string); constructor(name?: … Read more