Skip to content

fix: generics

fix: generics #45

Triggered via push December 24, 2024 21:40
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; mapErr: (error: unknown) => E; }) => Result<T, E>' is not assignable to type '<T>(opts: { try: () => T extends Promise<unknown> ? never : T; mapErr: (error: Err<unknown>) => Err<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>; mapErr: (error: Err<unknown>) => Err<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