型別別名用來給一個型別起個新名字。 簡單的例子. 1. type Name = string;. 2. type NameResolver = () => string;. 3. type NameOrResolver = Name | NameResolver;.
確定! 回上一頁