Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
2 replies
Delvis

Can typescript infer from ternary operator?

Const example = test === true ? {count: 5} : {string: "string"}

Is that possible to somehow get this working.
Was this page helpful?