Using classes vs constructor functions in TypeScript : I am starting to write my first little app in TypeScript. Before, I did a lot of reading on the JavaScript classes and how *bad* and *fake* they are in JavaScript. That's why I decided to use good old constructor functions in my TS application, but after I wrote my first interface, a problem arose - how do I implement it in my constructor function?

Let's say I have an interface:
```
interface WebScraper {
  url: string,
  getRawContent(): string,
}
```

when I used classes I would simply code

```
class Scraper implements WebScraper {
  //...
}
```

but how do I do it for a constructor function? I will be using it with the `new` keyword so it will return an object with specific properties. Would that be correct then, if I specify the interface as the return type?

```
function Scraper(): WebScraper {
  //...
}
```

I actually tried that and got an error
```
error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
```

How do I solve this then?