Preview:```ts
type propType = "checkbox" | "number" | "list"
function getPropertyValue<Type extends propType>(
prop: Type
) {
if (prop === "checkbox")
return true as Type extends "checkbox"
? boolean
: null
if (prop === "number")
return 5 as Type extends "number" ? number : null
...```
You can choose specific lines to embed by selecting them before copying the link.