title: Only odd numbers type for Typescript
body: <p>I want to have a type that checks if the value is an odd number or not. I tried to find something but I find only hardcoded solutions like <code>odds: 1 | 3 | 5 | 7 | 9</code>. But I want to know is there a dynamic way to do it only with Typescript.</p>
  <p>I know that for example in JS we can find out that the number is odd or not with this expression <code>x % 2 === 1</code>. I want to know is there a way to define a type with an expression like this.</p>