Effect CommunityEC
Effect Community3y ago
10 replies
Patrick Roza

Filtering a Type to Remove Optional Properties

can you filter a type removing all optional properties?
// "exactOptionalPropertyTypes": true
type A = {
  a: 1
  b?: 2
  c?: 3
}
type FilteredA = {
  a: 1
}
Was this page helpful?