HackerTrans
トップ新着トレンドコメント過去質問紹介求人

scottlecrab

no profile record

コメント

scottlecrab
·7 年前·議論
https://www.typescriptlang.org/play/index.html#code/MYewdgzg...

Using `as const` will report both the 2nd and 3rd lines as type errors. You've been able to do this in TypeScript for a while even before they introduced the `as const` syntax.