Preview:```ts
type NumberToString<T extends number> = ${T}
type Space = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 28
function toNumber(
value: NumberToString<Space> | Space
): Space {
if (typeof value === "string") {
return Number(value) // i could do type casting, but is it "best practice
...```
You can choose specific lines to embed by selecting them before copying the link.