Preview:```ts
type Params = {
foo: string
}
declare function bar(params: Params): void
function test1(params: Partial<Params>) {
if (params.foo != null) {
bar(params)
}
}
function test2(params: Partial<Params>) {
const {foo} = params
if (foo != null)
...```
You can choose specific lines to embed by selecting them before copying the link.