1

Does typescript have a way to conditionally filter a type based on property writability or readability? For example:

interface Foo {
  readonly x: string;
  y: string
}
type FooOptions = Writable<Foo>; // { y: string }
Chris Pfohl
  • 18,220
  • 9
  • 68
  • 111

0 Answers0