Preview:```ts
const someObj = {
a: "foo",
b: "bar",
}
function doSomething(str: string) {
if (str in someObj) {
// Typescript is not happy
console.log(someObj[str])
}
// Typescript is not happy
if (typeof someObj[str] !== "undefined") {
}
}```
You can choose specific lines to embed by selecting them before copying the link.