Does a class NEED a constructor in Typescript?

typescript

Solution

From the spec, section 8.3 (8.3):

A class may contain at most one constructor declaration. If a class contains no constructor declaration, an automatic constructor is provided, as described in section 8.3.3. (8.3.3.)

Problem

All the examples I see show a class with a constructor. Is it ok to not put a constructor in? a lot like how C# automatically makes you a default empty constructor?

Original source