HackerTrans
TopNewTrendsCommentsPastAskShowJobs

scottlecrab

no profile record

comments

scottlecrab
·il y a 7 ans·discuss
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.