Skip to content

refactor: rename catch parameter to mapErr in trySync and tryAsync fu… #38

refactor: rename catch parameter to mapErr in trySync and tryAsync fu…

refactor: rename catch parameter to mapErr in trySync and tryAsync fu… #38

Triggered via push December 24, 2024 19:39
Status Failure
Total duration 19s
Artifacts

main.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
build: src/services.ts#L24
Type '<T, E>({ try: operation, mapErr, }: { try: () => T extends Promise<unknown> ? never : T; mapErr: (error: unknown) => E; }) => Result<T, E>' is not assignable to type '<T>(opts: { try: () => T extends Promise<unknown> ? never : T; catch: (error: unknown) => ServiceErrorProperties; }) => Result<T, ServiceErrorProperties>'.
build: src/services.ts#L25
Type '<T, E>({ try: operation, mapErr, }: { try: () => Promise<T>; mapErr: (error: unknown) => E; }) => Promise<Result<T, E>>' is not assignable to type '<T>(opts: { try: () => Promise<T>; catch: (error: unknown) => ServiceErrorProperties; }) => Promise<Result<T, ServiceErrorProperties>>'.
build
Process completed with exit code 1.
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636