Posts / patterns
1 post tagged
- 18 Jan 2023Set function return value nullable on demand with typescript overloads
In this post we'll introduce a technique to make a function that returns a non-null value, to return also a nullable one when the scenario dictates it