한국어
Appearance
toError의 결과를 throw합니다.
toError
Signature:
throwError: <T, E extends Error>(toError: (input: T) => E) => (input: T) => never;
const result: never = pipe( 0, throwError((input) => Error(`input is ${input}`)), (input: never) => { // unreachable point }, );
Open Source Code