First, you can omit the function keyword and the datatypes on the implementation (those datatypes are still specified in the datatype declaration); Second, if you have only a single parameter, you can ...
In TypeScript, you can define a function that, when passed a set of parameters, creates and returns a correctly configured object. One of the parameters passed to the function must be the class of the ...