Extracts the entity name from a typed sort key condition for return type narrowing.
Narrows when:
"Order"
{ $beginsWith: "Order" }
Does not narrow when:
"Order#123"
{ $beginsWith: "Order#..." }
The entity type being queried.
The inferred sort key condition literal type.
Extracts the entity name from a typed sort key condition for return type narrowing.
Narrows when:
"Order"→"Order"{ $beginsWith: "Order" }→"Order"Does not narrow when:
"Order#123"(can't parse the delimiter at type level){ $beginsWith: "Order#..." }(specific prefix, not just entity name)