© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Making All Schema Properties Nullable in TypeScript - Effect Community
EC
Effect Community
•
2y ago
•
3 replies
sandromaglione
Making All Schema Properties Nullable in TypeScript
Is it possible to map all the properties of a schema to be nullable
?
The same result achieved by this type in typescript
:
export
type
Nullable
<
T
>
=
{ [
K
in
keyof
T
]
:
T
[
K
]
|
null
};
export
type
Nullable
<
T
>
=
{ [
K
in
keyof
T
]
:
T
[
K
]
|
null
};
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
TypeScript Compilation Error: Missing Properties in Schema
EC
Effect Community / schema
2y ago
Extracting Schema-Defined Properties from TaggedError in TypeScript
EC
Effect Community / schema
3mo ago
Omitting Properties from Schema.Class in Effect Typescript
EC
Effect Community / schema
7mo ago
Making a Class Schema Generic in Effect Typescript
EC
Effect Community / schema
15mo ago