| ▲ | SebastianKra an hour ago | |
I wonder what you're doing that you need to type it so often. I almost never use it in application code (outside of tests and generic utilities). There are some techniques that aren't immediately obvious. Look into... - type guards - pushing constraints up: `function print(i: Invoice & { issueDate: string })` is better than `assert(i.issueDate)` - discriminated unions | ||