© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Can typescript infer from ternary operator? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y 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
.
Theo's Typesafe Cult
Join
27,290
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
infer from trpc calls
TTC
Theo's Typesafe Cult / questions
3y ago
Infer useQuery .data type from TRPC
TTC
Theo's Typesafe Cult / questions
3y ago
infer parameter type from external type
TTC
Theo's Typesafe Cult / questions
3y ago