The general idea of a branded type is to keep only one constructor for it to ensure an always valid value. Branded types are a common pattern in typescript.
確定! 回上一頁