Extracts the numeric-literal keys of a union frame, in both string ("0") and numeric (0) form.
Declaration emit serialises numeric keys as bare numerics ({ 0; 1 }) rather than string
literals ({ "0"; "1" }), so both forms must be matched for the collapse to survive a
cross-package .d.ts round-trip. Wide number / string index signatures (for example
Locales maps) are excluded so they keep mapping through Slots.
Type Parameters
T
The object type whose numeric-literal keys to extract
Extracts the numeric-literal keys of a union frame, in both string (
"0") and numeric (0) form.Declaration emit serialises numeric keys as bare numerics (
{ 0; 1 }) rather than string literals ({ "0"; "1" }), so both forms must be matched for the collapse to survive a cross-package.d.tsround-trip. Widenumber/stringindex signatures (for example Locales maps) are excluded so they keep mapping through Slots.