Typescript intellisense property suggestion breaks for object literals with `as const` assertion

前端 未结 0 920
庸人自扰
庸人自扰 2021-01-29 16:08

Typescript Playground

See this:

That is the default behavior. Typescript know which properties it should have.

But when you add an as const

相关标签:
回答
  • 消灭零回复
提交回复
热议问题