my blog https://overreacted.io
53
fork

Configure Feed

Select the types of activity you want to include in your feed.

nit

Dan Abramov 3f4a1ef6 a7bbf9fd

+1 -1
+1 -1
public/beyond-booleans/index.md
··· 204 204 205 205 What does that mean in practice? 206 206 207 - Suppose that you [wanted to](https://stackoverflow.com/questions/39540156/typescript-number-must-be-less-than-1-and-greater-than-0) write a function that takes a number strictly between `0` and `1`. In TypeScript, you can't do much better than throwing a runtime error: 207 + Suppose that you [wanted to](https://stackoverflow.com/questions/39540156/typescript-number-must-be-less-than-1-and-greater-than-0) write a function that takes a number strictly between `0` and `1`. In TypeScript, you can't do [much](https://gist.github.com/gaearon/966446d27de88ba4d4806a9a5b291d0a) better than throwing a runtime error: 208 208 209 209 ```js 210 210 function someFunction(x: number) {