4 ms·
As an aside I think the non-null assertion operator should be transpiled via Babel from `userId!` to `if (!userId) throw new Error('Non-Null Assertion Failed
by mfbx9da4 3y ago
As an aside I think the non-null assertion operator should be transpiled via Babel from
`userId!`
to
`if (!userId) throw new Error('Non-Null Assertion Failed "userId!"')`
- triyambakam 3y agoI like it, but I think it would violate the rule that TS code is simply erased. Though there are already a few exceptions like enums, but those are out of favor.