Preview:```ts
// Setup
type a = 'a';
type b = 'b';
const isA = (x:any):x is a => x === 'a';
const fail = (msg: any): never => {
throw new Error(msg);
};
// Code
const someFn = ():a | b => {
if(Math.random()> 0.5) {
return 'a';
}
return 'b';
};
const y = someFn();
...```
You can choose specific lines to embed by selecting them before copying the link.