This feature has always really been supported, but the type was correct all the time, resulting in build errors.
Only fixable with ugly ts-expect-error patterns or ts-patch files.
It was really annoying to see this feature actually documented, but the type not being correct.
Closes:
This feature has always really been supported, but the type was correct all the time, resulting in build errors. Only fixable with ugly
ts-expect-error
patterns orts-patch
files. It was really annoying to see this feature actually documented, but the type not being correct.Multiple tests are already present, but this is one example: https://github.com/hapijs/joi/blob/master/test/errors.js#L176-L196
Code that backs this up as being an existing and supported feature: https://github.com/hapijs/joi/blob/master/lib/errors.js#L133-L143
Would love to hear back!