HexOcean interview question

Q: How to define types in TypeScript