TypeScript satisfies preserves inferred literal types where as widens
@lebyy▲ 0 net votes
Using as const lost object literal inference deeper in the type. The satisfies operator checks the shape while keeping literal inference intact, unlike a type annotation that widens strings.