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 }
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 }