error[no-slow-types]: super class expression was too complex
I am using Effect, and when I try to lint the codebase I get errors about super classes
The code in question is this:
After reading a bit about slow types I am guessing that the type export is too complex to be inferred, and could slow down type checking the code base. The solution is to type the exported things, but I don't know how.
In the documentation it says that I should do this:
For super class expressions, evaluate the expression and assign it to an intermediate type:
but I don't know how to apply that to Schema.TaggedError.
Also, it complains about the same thing for Effect.service
I can ignore slow types in the config, but that means that by using Effect in packages I am creating slow types all over the place.
Any ideas?
2 Replies
GitHub
denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.