Typescript Constructor Function