TypeScript conditional types - filter out readonly properties / pick only required properties : <p>Using the new conditional types in TypeScript (or maybe another technique), is there a way to pick only certain properties from an interface based on their modifiers? For example, having...</p>

<pre><code>interface I1 {
    readonly n: number
    s: string
}
</code></pre>

<p>I would like to create a new type based on the previous one which looks like this:</p>

<pre><code>interface I2 {
    s: string
}
</code></pre>
