Unified · Split
| @@ -41,10 +41,8 @@ function decodeForEvent<A>( · 40 unmodified lines | |||
| 41 | field: string, | 41 | field: string, |
| 42 | ): Effect.Effect<A, OrchestrationProjectorDecodeError> { | 42 | ): Effect.Effect<A, OrchestrationProjectorDecodeError> { |
| 43 | return Effect.try({ | 43 | return Effect.try({ |
| 44 | // eslint-disable-next-line @typescript-eslint/no-explicit-any | 44 | try: () => Schema.decodeUnknownSync(schema as any)(value), |
| 45 | try: () => Schema.decodeUnknownSync(schema as any)(value) as A, | 45 | catch: (error) => toProjectorDecodeError(`${eventType}:${field}`)(error as Schema.SchemaError), |
| 46 | catch: (error) => | ||
| 47 | toProjectorDecodeError(`${eventType}:${field}`)(error as Schema.SchemaError), | ||
| 48 | }); | 46 | }); |
| 49 | } | 47 | } |
| 50 | 48 | ||
| @@ -30,6 +30,7 @@ · 29 unmodified lines | |||
| 30 | }, | 30 | }, |
| 31 | "test": { | 31 | "test": { |
| 32 | "dependsOn": ["^build"], | 32 | "dependsOn": ["^build"], |
| 33 | "cache": false, | ||
| 33 | "outputs": [] | 34 | "outputs": [] |
| 34 | } | 35 | } |
| 35 | } | 36 | } |