TypeScript

Intersection

Combine types.

💡 THINK OF IT LIKE…
▸ YOUR TURN

Write type Both = A & B;

intersect.ts
+100 XP
Tab indent · Shift+Tab outdent · ⌘/Ctrl + Enter submit · auto-pairs ( [ { " '