Effect CommunityEC
Effect Community3y ago
3 replies
bug

Issues with Effect `.d.ts` files and `<const ...` generics causing compilation errors

hi. i'm trying to add new version of effect to a project. the project fails to compile because of errors in Effect .d.ts files. definitions like these (https://github.com/Effect-TS/data/blob/main/src/Either.ts#L505-L506) with <const ... generics are failing. it seems like // @ts-expect-error are getting compiled out. i verified those comments get compiled out when i build @effect/data directly. it's happening for @effect/data 0.17.1 and @effect/io 0.38.0. earlier versions (0.12.2/0.20.0 respectively) don't seem to have the issue.

please advise?
Was this page helpful?