book
book copied to clipboard
docs: "user-defined type guard"の英語表記を補足として追加
”この名称は英語としても長いらしく”と記述があるのに 肝心の英語の名称が表記されておらず気になってしまったため ”user-defined type guard”を補足として追記します
”user defined”か"user-defined"か迷いましたが以下を参照して後者を採用しました https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates
To define a user-defined type guard, we simply need to define a function whose return type is a type predicate:
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
book | ✅ Ready (Inspect) | Visit Preview | Sep 22, 2022 at 2:53AM (UTC) |