fix: generics #45
Annotations
3 errors and 1 warning
Run pnpm run lint && pnpm run 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>'.
|
Run pnpm run lint && pnpm run 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>>'.
|
Run pnpm run lint && pnpm run build
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading