(value, test)
| 1842 | } |
| 1843 | ts.tryCast = tryCast; |
| 1844 | function cast(value, test) { |
| 1845 | if (value !== undefined && test(value)) |
| 1846 | return value; |
| 1847 | return ts.Debug.fail("Invalid cast. The supplied value ".concat(value, " did not pass the test '").concat(ts.Debug.getFunctionName(test), "'.")); |
| 1848 | } |
| 1849 | ts.cast = cast; |
| 1850 | /** Does nothing. */ |
| 1851 | function noop(_) { } |
no test coverage detected
searching dependent graphs…