The other answer is incorrect. TypeScript allows typed function overloading, including constructor overloading. (Note that you must do runtime checks, ...
確定! 回上一頁