Is there a way to do it without "as"?
Sandbox.
const names = [\'a\' , \'b\'] as const // readonly ["a", "b"] type Name =