Typescript Playground
See this:
That is the default behavior. Typescript know which properties it should have.
But when you add an as const
as const