javascript - How make in TypeScript typesafe union type form function ...

javascript - How make in TypeScript typesafe union type form function ...

More to explore

Based on this image's title: “javascript - How make in TypeScript typesafe union type form function ...