Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Modifying inferred type of deeply nested object - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
11 replies
6enton
Modifying inferred type of deeply nested object
Hi folks
,
Say I have a deeply nested object that I
'm inferring types of
.
type MyObj = typeof myObj
type MyObj = typeof myObj
But I
'm not happy with some of the inferred types
. For example
(I know
.
.
.
) I have a type that is
undefined
undefined
but needs to be of type
undefined | boolean
undefined | boolean
.
How can I easily modify that nested type
? And do it many times with different nested values
?
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Error handling deeply nested writes
TTC
Theo's Typesafe Cult / questions
4y ago
Creating deeply nested Prisma entries
TTC
Theo's Typesafe Cult / questions
4y ago
Single element type of inferred router output array type
TTC
Theo's Typesafe Cult / questions
4y ago
Infer nested type of trpc router return type
TTC
Theo's Typesafe Cult / questions
3y ago