Stackblitz link - https://stackblitz.com/edit/stackblitz-starters-znejmf?file=src%2Findex.ts
run npx tsc in terminal to reproduce
I really dont want to put //@ts-expect-error in the lines.
6 messages · Page 1 of 1 (latest)
Stackblitz link - https://stackblitz.com/edit/stackblitz-starters-znejmf?file=src%2Findex.ts
run npx tsc in terminal to reproduce
I really dont want to put //@ts-expect-error in the lines.
maybe something like this?
for (const iterator of typeFlagsOfUnions) {
if (iterator in literalToPrimitiveTypeFlags) {
}
}
literalToPrimitiveTypeFlags[iterator as keyof typeof literalToPrimitiveTypeFlags]
a bit ugly but it works
THANKS A LOT !!