to check against
to try/test with
to fallback to if the test failed
A1 | Catch
import {A} from 'ts-toolbelt'
type test0 = A.Try<'42', string> // '42'
type test1 = A.Try<'42', number> // never
type test1 = A.Try<'42', number, 'tried'> // 'tried'
Similar to Cast but with a custom fallback
Catch
. If it fails, it will enforceCatch
instead ofA2
.