3 ms·I don’t get this? why do I need to say as const?by cat-whisperer 1y agoI don’t get this? why do I need to say as const?afdbcreid 1y ago`as const` is a special annotation that lets the TypeScript compiler infers the more specific type `["foo"]` instead of `string[]`.halflife 1y agoAs const creates a typed tuple instead of a typed array