3 ms·
"string | number | number" is just "string | number" to Typescript.
by yencabulator 4y ago
"string | number | number" is just "string | number" to Typescript.
- benatkin 4y agoThe OR doesn't indicate | in TypeScript, it indicates the result of the possible future type guard.