TypeScript constructors.