Effect CommunityEC
Effect Community2y ago
18 replies
Max Khramtsov

Avoiding TS2590 Error with Effect.Tag

Is it possible to avoid such a problem?
src/applications/telegram-bot/src/RestApiService.ts:26:14 - error TS2590: Expression produces a union type that is too complex to represent.

26 export class RestApiServiceTag extends Effect.Tag(

At the same time, the use of Context.Tag does not cause errors.
Maybe there is another way to declare type of Effect.Tag?
Was this page helpful?