中文
Appearance
抛出 toError 的结果。
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