query
On this page

addCheck

lib.types.addCheck

Docs pulled from | This Revision | about 3 hours ago


Augment the given type with an additional type check function.

This function has some broken behavior see: #396021 Fixing is not trivial, we appreciate any help!


Noogle detected

Implementation

The following is the current implementation of this function.

addCheck = elemType: check: elemType // { check = x: elemType.check x && check x; };