Narrow a type without widening literals.
Type to narrow
Preserves literal types while leaving their corresponding base types unchanged. Primarily useful as a semantic marker in public APIs.
type A = Narrow< 'hello' >; // 'hello'type B = Narrow< string >; // string Copy
type A = Narrow< 'hello' >; // 'hello'type B = Narrow< string >; // string
Narrow a type without widening literals.